Home > front end >  Inquire of js custom selector what meaning is this code (part line drawing)
Inquire of js custom selector what meaning is this code (part line drawing)

Time:12-17

Saw in front end programmer interview book, didn't understand line drawing that matches the ABC, isn't it? How to put the name of the class match up?

CodePudding user response:

New RegExp is regular, \ b is word boundaries, before and after the word is the border, you this is to look for the style applications, the style name is ABC, abcd is not, but will calculate, ABC - 1 the usage the feeling is very strange

CodePudding user response:

But he clearly is a class selector, ABC is what mean?

CodePudding user response:

It is write wrong
  • Related