This commit is contained in:
贤心
2021-04-22 10:22:45 +08:00
parent 0a433bf2e4
commit 726cdd9ba5
20 changed files with 637 additions and 111 deletions

View File

@@ -234,7 +234,7 @@ layui.define('layer' , function(exports){
xhr.upload.addEventListener("progress", function (e) {
if(e.lengthComputable) {
var percent = Math.floor((e.loaded/e.total)* 100); //百分比
options.progress(percent, options.item[0], e);
options.progress(percent, (options.item ? options.item[0] : options.elem[0]) , e);
}
});
return xhr;