使用每个:’ i
‘是数组中的位置,obj
是您要迭代的DOM对象(也可以通过jQuery包装器进行访问$(this)
)。@H_404_7@
$('.testimonial').each(function(i, obj) {
//test
});
jQuery遍历具有相同类的元素
使用每个:’ i
‘是数组中的位置,obj
是您要迭代的DOM对象(也可以通过jQuery包装器进行访问$(this)
)。@H_404_7@
$('.testimonial').each(function(i, obj) {
//test
});