700字范文,内容丰富有趣,生活中的好帮手!
700字范文 > Uploadify IE出现了SCRIPT5007 缺少对象

Uploadify IE出现了SCRIPT5007 缺少对象

时间:2023-07-29 17:40:59

相关推荐

Uploadify IE出现了SCRIPT5007 缺少对象

Uploadify.js在 火狐谷歌操作都没有问题,在IE操作报错,SCRIPT5007 缺少对象。

于是爬文读源码,原因可能是ie下js无法正常销毁swfupload元素,而使flash中的错误处理代码报错

SWFUpload.prototype.cleanUp = function () {var key, movieElement = this.getMovieElement();// Pro-actively unhook all the Flash functionstry {if (movieElement && typeof(movieElement.CallFunction) === "unknown") { // We only want to do this in IEthis.debug("Removing Flash functions hooks (this should only run in IE and should prevent memory leaks)");for (key in movieElement) {try {if (typeof(movieElement[key]) === "function" && key[0] >= 'A' && key[0] <= 'Z') {movieElement[key] = null;}} catch (ex) {}}}} catch (ex1) {}

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。