<
img
id
=
"img"
src
=
"url"
/>
<
script
>
var img = document.getElementById('img')
if(!img.complete){
img.addEventListener('load',function(){/*已加载完*/})
}
else{/*已加载完*/
}
</
script
>
<
img
id
=
"img"
src
=
"url"
/>
<
script
>
var img = document.getElementById('img')
if(!img.complete){
img.addEventListener('load',function(){/*已加载完*/})
}
else{/*已加载完*/
}
</
script
>