---
title: "IE下使用uploadify上传文件的相关问题解决 "
author: "lanrikey"
date: "2017-10-12T12:14:08Z"
tags: []
categories: ["Web前端"]
slug: "ie-uploadify"
draft: false
lastmod: "2017-10-12T12:14:08Z"
id: 2396000
url: "https://lanrikey.iteye.com/blog/2396000"
---

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" <span style="color:red">&& h >= 'A' && h <= 'Z'</span>) {
                        f = null;
                    }
                } catch(e) {
}
            }
        }
    } catch(g) {
}
    window.__flash__removeCallback = function(c, b) {
        try {
            if (c) {
                c** = null;
            }
        } catch(a) {}
    };
};


1
<!--
 启动JSON格式的配置 -->
2
<bean id="jacksonMessageConverter" class="org.springframework.http.converter.json.MappingJacksonHttpMessageConverter">   
3
<!--解决
 HttpMediaTypeNotAcceptableException: Could not find acceptable representation -->
4
      <property name="supportedMediaTypes">
5
                  <list>   
			<value>application/json</value> 
               		<value>text/plain;charset=UTF-8</value>   
              		<value>text/html;charset=UTF-8</value>   
           	  </list>
8
       </property>
9
</bean>