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) {}