2
我有以下.each
jQuery循环。JQuery每个循环 - 用当前循环元素做些什么
$('.category').each(function(index) {
if($('.category > span').parent().next('h2')) {
// get currently looped element which follows the condition
}
});
如何获得目前通过.each
的if
语句中环元素?