Ext.FormPanel 提交和 Ext.Ajax.request 异步提交函数的区别
人气:0
(1)Ext.FormPanel
f.getForm().submit({
url:"......",
params:{ XX:xx .....}
success: function (c,v,e) { //e: 触发事件
var json=Ext.decode(v.response.responseText);
},
failure:function(c,v,e){}
})
(2)Ext.Ajax.request
Ext.Ajax.request({
url:"....",
params:{XX:xx....},
success: function (v,c) {
var json=Ext.decode(v.responseText);
},
failure:function(v,c){}
})
f.getForm().submit({
url:"......",
params:{ XX:xx .....}
success: function (c,v,e) { //e: 触发事件
var json=Ext.decode(v.response.responseText);
},
failure:function(c,v,e){}
})
(2)Ext.Ajax.request
Ext.Ajax.request({
url:"....",
params:{XX:xx....},
success: function (v,c) {
var json=Ext.decode(v.responseText);
},
failure:function(v,c){}
})
加载全部内容