3
我正在尝试使用加载图像的进度来显示进度条。我尝试使用onload和onprogress,如前面的一个答案中所建议的,但只是onload作品。提前感谢。跟踪在JavaScript中加载图像的进度
var Img = new Image();
Img.onload = function() {
console.log("loaded");
};
Img.onprogress=function(){
console.log("progress");
};
Img.src = imageUrl;
的[图像的JavaScript加载进度]可能的复制(http://stackoverflow.com/questions/14218607/javascript-loading-progress-of-an-image) – Xeos