IE下使用uploadify上传报:Uploadify-Script5007 Object expected

来源:互联网 发布:知乎玲珑邪僧 编辑:程序博客网 时间:2024/06/10 02:01
原来的代码:SWFUpload.prototype.cleanUp = function(a) {    try {        if (this.movieElement && typeof(a.CallFunction) === "unknown") {            this.debug("Removing Flash functions hooks (this should only run in IE and should prevent memory leaks)");            for (var c in a) {                try {                    if (typeof(a[c]) === "function") {                        a[c] = null                    }                } catch(b) {}            }        }    } catch(d) {}    window.__flash__removeCallback = function(e, f) {        try {            if (e) {                e[f] = null            }        } catch(g) {}    }};修正代码:SWFUpload.prototype.cleanUp = function(f) {    try {        if (this.movieElement && typeof(f.CallFunction) === "unknown") {            this.debug("Removing Flash functions hooks (this should only run in IE and should prevent memory leaks)");            for (var h in f) {                try {                    if (typeof(f[h]) === "function" && h[0] >= 'A' && h[0] <= 'Z') {                        f[h] = null;                    }                } catch(e) {}            }        }    } catch(g) {}    window.__flash__removeCallback = function(c, b) {        try {            if (c) {                c[b] = null;            }        } catch(a) {}    };};




js文件:下载地址

0 0
原创粉丝点击