The code and the effect of detailed trouble check the links below,
https://codepen.io/moonjwpark/pen/OJMvWgP
CodePudding user response:
This is to mark the currently displayed subscript, delete not sure,CodePudding user response:
If is to mark the current index position, direct use of _liA [j]. The index can not, use a for loop is not in order to get the current index value,Besides _liA [j]. Journal of index and j returned is the number of types, since it is the same type, have why to mandatory indicate?
CodePudding user response:
_liA [j] default is not the index attribute, this cycle is behind this attribute assignment of a value used to match the value of the current active top style, or match the current click to that position, the value is the key to realize this round of play,CodePudding user response:
If use dom directly with jq. The index () to obtain the index values, the native js does not support this plus the index attribute associated, this is more like a wheel instead of the TAB