为什么给的prev传递选择器代码显示出来的结果只有clsaa=“level-3”的2添加上了蓝色的框,而不是每一个2都有边框?
check
check 2016-12-20 09:21:34
0
2
1154
check
check

reply all(2)
数据分析师

Why does the prev pass selector code show that only the 2 with clsaa="level-3" has a blue frame added, instead of each 2 having a border? -PHP Chinese website Q&A-Why does the prev pass selector code show that only the 2 with clsaa="level-3" has a blue frame added, instead of each 2 having a border? -PHP Chinese website Q&A

Please watch and learn.

迷茫

因为做了筛选啊。$('.item-3').prev(':last')这句的意思是:找到类名为item-3的所有紧邻前兄弟节点中的最后一个。所以只有最后一个有蓝色框

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template