为什么我的load始终无法触发
$.each(imgs,function(i,src){
var imgObj=new Image();
$(imgObj).on('load',function(){
$pic.html(Math.round((count+1)/len*100)+"%")
console.log(Math.round((count+1)/len*100))
if(count>=len-1){
$('.pic').hide();
}
count++;
})
});
$.each(imgs,function(i,src){
var imgObj=new Image();
$(imgObj).on('load',function(){
$pic.html(Math.round((count+1)/len*100)+"%")
console.log(Math.round((count+1)/len*100))
if(count>=len-1){
$('.pic').hide();
}
count++;
})
});
2017-08-24
举报