在from中使用了 enctype="multipart/form-data" ,οnsubmit="return oncheck(this),
在JSoncheck中return iframeCallback(form, dialogAjaxDone);使用了iframeCallback后就不会在页面直接输出json数据,
碰到提交文件后,出现保存JSON数据时,需要在后台返回的JSON设置ContentType,
String json = "{\"statusCode\":\"200\",\"message\":\"操作成功!\","
+ "\"callbackType\":\"closeCurrent\",\"navTabId\":\"39\"}";
HttpResponseUtils.getPrintWriter("text/html;charset=UTF-8").write(json);
不知到为什么设置text/json时,IE正常,其它不正常,设置为application/json时,浏览器都不正常。设置为text/html,几种浏览器都正常。