each jquery里的方法
$('.xx').each(function(index,item){
$(this).xxx
})
$.each($('.xx'),function(){
$(this).xx
})
在js里的getElemnetsByClassName或者querySelectorAll这样的可以使用
for(var x of $('.xx'))
xx.forEach(function(index,item)) 在xx是纯数组的时候 , 在querySelectorAll里可以使用
基本都可以使用
for(var i=0;i<xx.length;i++){}
具体使用查看查询的结构是怎么样的
11-23
09-18
6486
