2
我有以下.each
jQuery循環。JQuery每個循環 - 用當前循環元素做些什麼
$('.category').each(function(index) {
if($('.category > span').parent().next('h2')) {
// get currently looped element which follows the condition
}
});
如何獲得目前通過.each
的if
語句中環元素?