jQuery 判断图片是否加载完成

var num = $img.length;

$imgs.load(function() {
  num--;
  if (num > 0) {
    return;
  }
  console.log('load compeleted');
}

 

posted @ 2018-03-01 11:15  心随风飞lss  阅读(117)  评论(0编辑  收藏  举报