Home > front end >  Don't understand the code, a great god
Don't understand the code, a great god

Time:12-19

CodePudding user response:

The first method to obtain a certain element of all you need to label the corresponding tag
The second way to look at this address: https://blog.csdn.net/fandyvon/article/details/88720763;
The third method from you to obtain corresponding you need element in the array id name.
Fourth method under the idea is to a particular element after the name of the class into an array of all the labels with another k you need value for the string matching, matching to the same value when will you need the q in the array class name tags added to the t in the array; But he this code is problematic, and because of the break, so can only match in t array to the first value, this will do for the to

CodePudding user response:

, of course, all you need is the class name of the class to match, so as long as one is equivalent to access to all you need is the name of the class label, and need the name of the class, t.p ush value should not be q [j], [j], but m words always feel it is entirely unnecessary method
  • Related