extjs submit 跳转 记录
手贱,想在extjs登陆成功后跳转到另外一个页面
直接在submit 提交事件 success:function(){}里面加window.location.href='xxxx'
火狐正常跳转,ie报了一个语法错误。
整理了一下思路 换了个写法:
from1.getForm().submit({failure : function(myfrom, myaction) {Ext.MessageBox.wait('请等待', '数据读取中……');if (myaction.result && myaction.result == 1) {window.location.href = 'index.php?s=/index/index/main';} else {Ext.Msg.alert('用户名密码错误!请重新输入!');}}}