0
這裏是我的屬性數組:
如果選擇具有ATTRS的陣列的ATTR
var newIDs = [];
$element.parents(".comments").find(".comment.new").each(function(idx, el){
newIDs.push($(this).attr('commentID'));
});
現在我有一個選擇:
html = $(html).find('.comment')
我想縮小選擇來測試.comment在上面的數組中有任何到達數。