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-09-30 01:30:32
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); } });