var count=0; $append_items.find(‘img‘).on(‘load‘,function(){ count++; if(count == $append_items.length){ $masonry_box.append($append_items).masonry(‘appended‘,$append_items); } });
时间: 2024-11-29 12:27:37
var count=0; $append_items.find(‘img‘).on(‘load‘,function(){ count++; if(count == $append_items.length){ $masonry_box.append($append_items).masonry(‘appended‘,$append_items); } });