0
我很努力区分sencha touch中的响应MIME类型。我的登录服务是这样设计的,如果登录成功,那么它会给我一个JSON对象。如果未通过身份验证,则会返回计划错误文本。 我如何找到差异?我的请求看起来像这样。如何识别sencha中的响应MIME类型
Ext.Ajax.request({
url : 'http://xxxx.com/Sencha/LoginServlet?userid='+ agentid + "&password=" + password,
type:'json',
success : function(response, opt) {
alert("response text" + response.responseText);
var obj = Ext.decode(response.responseText);
console.dir(obj);
App.views.viewport.reveal('nextScreen');
},
failure : function(response, opt) {
Ext.Msg.alert('Failed', response.responseText);
}
});