Ext Ajax
请关注新浪微博账号:屌丝开发控(http://weibo.com/u/3356934744)
ExtAjax
// 方式1 var conn = new Ext.data.Connection({ autoAbort: false, disableCaching : false, //参数 extraParams : { from_module_id:'core_framework_portal', param_type:'child_menu' }, method : 'GET', timeout : 20000, //url url:url }); conn.request({ success: function(response) { var text=response.responseText; var object=Ext.util.JSON.decode(text); }, failure: function() { Ext.Msg.alert('信息', '请求失败'); } }); //方式2 Ext.Ajax.request({ url: 'ajax_demo/sample.json', params{}, success: function(response, opts) { var obj = Ext.decode(response.responseText); }, failure: function(response, opts) { } });
相关推荐
InJavaWeTrust 2020-05-15
Chydar 2012-09-20
natejeams 2020-01-15
zcpHappy 2014-01-11
pythonclass 2019-11-07
JF0 2019-11-03
ElementW 2015-02-15
干货集合 2014-05-14
kaiya0 2012-06-13
cscscssjsp 2012-03-05
drinow 2019-07-12
coderMozart 2019-06-30
t0ckh 2012-11-11
中等偏下 2017-02-22
nicepainkiller 2016-07-26
xiaoren 2016-02-10
云帆大数据 2016-01-11