ext 表单提交按钮与post表单值方法程序代码buttons: [{ text: '登录', handler:function(){//当点击按钮执行这个函数 if(win.getComponent('login').form.isValid()){login为from的id win.getComponent('login').form.submit({ url:'login_chk.php', waitTitle:'提示', method: 'POST', waitMsg:'正在登录验证,请稍候...', success:function(form,action){//如果post成功执行这里 var loginResult = action.result.success; if(loginResult == false){//如果login_chk.php返回false执行这里 Ext.MessageBox.alert('提示', action.result.message);.................
Tags:
Ext 表单 post php JS