ITeye博客

IE下使用uploadify上传文件的相关问题解决

lanrikey · 2017-10-12 12:14 · JS · Web前端 · Markdown

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) === "function") { a = null } } catch(b) {} } } } catch(d) {} window.__flash__removeCallback = function(e, f) { try { if (e) { e = 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) === "function" && h >= 'A' && h <= 'Z') { f = null; } } catch(e) { } } } } catch(g) { } window.__flash__removeCallback = function(c, b) { try { if (c) { c** = null; } } catch(a) {} }; };

1

2
3

4 5
application/json text/plain;charset=UTF-8
text/html;charset=UTF-8
8 9

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。