解决IE11上传预览不显示的问题

pull/358/head
hbwf 3 years ago
parent 07cc5dfa51
commit 4a53b718b1

@ -45,6 +45,13 @@
}; };
} }
if (!document.currentScript) {
document.currentScript = function() {
var scripts = document.getElementsByTagName('script');
return scripts[scripts.length - 1];
}();
}
var $h, FileInput, getLoadingUrl = function () { var $h, FileInput, getLoadingUrl = function () {
var src = document.currentScript.src, srcPath = src.substring(0, src.lastIndexOf("/")); var src = document.currentScript.src, srcPath = src.substring(0, src.lastIndexOf("/"));
return srcPath + '/loading.gif' return srcPath + '/loading.gif'

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save