如下ajax取不到后台传回的值,respText 取值为空
functionlogout(){Ext.Ajax.request({url:"login.action",async:true,method:"post",params...
function logout(){
Ext.Ajax.request({
url: "login.action",
async: true,
method: "post",
params: {flag:"A"},
success: function(response, option) {
var respText = Ext.util.JSON.decode(response.responseText);
Ext.MessageBox.alert('信息提示', respText.msg );
//self.location = respText.msg;
},
failure: function(response, option) {
Ext.MessageBox.alert('信息提示', option.result.msg);
}
})
} 展开
Ext.Ajax.request({
url: "login.action",
async: true,
method: "post",
params: {flag:"A"},
success: function(response, option) {
var respText = Ext.util.JSON.decode(response.responseText);
Ext.MessageBox.alert('信息提示', respText.msg );
//self.location = respText.msg;
},
failure: function(response, option) {
Ext.MessageBox.alert('信息提示', option.result.msg);
}
})
} 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询