日期:2014-05-16 浏览次数:20418 次
SyntaxError: missing } in XML expression [在此错误处中断] (<pre>{"msg":"ok","success":true}</pre>)
response.setContentTypeIfNotSet("text/html");
Ext.override(Ext.form.Action.Submit,{ // private processResponse : function(response){ this.response = response; //增加下面几句代码就OK啦 //////////////////////// var data = response.responseText; if(data.indexOf('<pre>') != -1) { response.responseText = data.substring(5, data.length-6); this.response = Ext.util.JSON.decode (response.responseText); } /////////////////////////// if(!response.responseText){ return true; } this.result = this.handleResponse(response); return this.result; } });