新手求助 为什么执行submit的时候不执行succes的回调函数?
ext吧
全部回复
仅看楼主
level 1
Fly_it_dream 楼主
handler:function() {
loginForm.form.doAction('submit', {
url:'LoginServlet',
method:'POST',
success:function(form, action) {
if (action.result.msg == 'ok') {
Ext.Msg.alert('成功', action.result.msg);
} else {
Ext.Msg.alert('登陆错误', action.result.msg);
}
},
failure:function(form, action) {
Ext.Msg.alert('警告', '用户名或密码错误!');
}
})
}
2013年03月25日 06点03分 1
1