标签: javascript jquery
将块动态添加到容器#NotificationList:
#NotificationList:
var idNotification = $('#NotificationList'); var items = idNotification.find('.item'); $(items).each( function( index, element ){ console.log(index); });
问题是在循环中看不到新添加的容器.item
.item