日期:2014-05-16  浏览次数:20816 次

Ext.decode 报错 无法获取属性“replace”的值: 对象为 null 或未定义 位于ext-base.js
ZHONGCENG.prototype.dosave = function() {
Ext.Ajax.request({
url : __ctxPath + '/zhongceng/save.do',
method : 'post',
success : function(response, opts) {alert(response.responseText);//弹出字符串 {"data":null,"msg":"url","success":true}
var retobj = Ext.decode(response.responseText) ;//此处报错  错误: 无法获取属性“replace”的值: 对象为 null 或未定义 位于ext-base.js
var path = retobj.msg;
Ext.ux.Toast.msg(path);
window.location.href = __ctxPath+path;
},
failure : function(response, opts) {
Ext.ux.Toast.msg('警告', '数据库访问错误['+response.statusText+']!') ;
}
});
}