An efficient method of semantic front-end selection
Patent Information
- Authority / Receiving Office
- CN ยท China
- Current Assignee / Owner
- ้ฉ็
- Publication Date
- 2019-03-22
- Estimated Expiration
- Not applicable ยท inactive patent
Abstract
Description
technical field
[0001] The invention relates to the technical field of program design, in particular to an efficient semantic front-end selection sub-solution method. Background technique
[0002] The front-end selector selector is a syntax for selecting elements in the DOM Tree of html. It can select elements according to their type, id, class, attributes, children, sorting, and combinations of these parameters. The result of the selection is a collection of one or more elements. However, the basis for these choices is not fully semantic. When we choose to develop the front end, we have to give a lot of classes on the html tag to realize the selection of the internal elements of the html component. This scheme of using class to select internal elements may face the problems of too long class naming, too long css writing, repeated classes, and redundant writing of selectors. At the same time, when the number of components reaches tens or hundreds, the commonality, intero...