<div id="container1">
<img src="1.jpg" />
<img src="2.jpg" />
<img src="3.jpg" />
<img src="4.jpg" />
<img src="5.jpg" />
</div>
----------------------------------------------------------------------------------------------------------------
<script>
var imgnum=0;
$("#container1 img").each(function(){
$(this).load(function(){
imgnum++;
//console.log(imgnum);
if(imgnum == 5){//所有图片加载完成后调用瀑布流函数
console.log("图片全部加载完成");
}
});
});
<script>