Load multiple pictures to judge the loading completion status

From , 5 Years ago, written in JavaScript, viewed 87 times.
URL https://pastebin.vip/view/f4f1f13c
  1. var totalimages = 10; var loadedimages = 0;$(<img/>).load(function() {++loadedimages; if(loadedimages == totalimages){//全部图片加载完成时….. } });

Reply to "Load multiple pictures to judge the loading completion status"

Here you can reply to the paste above

captcha

https://burned.cc - Burn After Reading Website