Home  >  Article  >  Web Front-end  >  The difference between Ext.FormPanel submission and Ext.Ajax.request asynchronous submission function_YUI.Ext related

The difference between Ext.FormPanel submission and Ext.Ajax.request asynchronous submission function_YUI.Ext related

WBOY
WBOYOriginal
2016-05-16 18:41:591013browse

(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){}
})

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn