首页 > Web开发 > 详细

Extjs4 filefield上传后返回信息页面异常

时间:2014-09-20 15:33:30      阅读:286      评论:0      收藏:0      [点我收藏+]

Ext.override(Ext.form.Action.Submit,{
processResponse : function(response){
this.response = response;
var data = response.responseText;
if(data.indexOf(‘<pre>‘) != -1||data.indexOf(‘<PRE>‘) != -1) {
response.responseText = data.substring(5, data.length-6);
this.response = Ext.JSON.decode(response.responseText);
}
if(!response.responseText){
return true;
}
this.result = this.handleResponse(response);
return this.result;
}
});

 

 

response.setCharacterEncoding("utf-8");
response.setContentType("text/html");

 

转载 http://liubl2011.iteye.com/blog/1242736

Extjs4 filefield上传后返回信息页面异常

原文:http://www.cnblogs.com/yanhu/p/3983310.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!