Ext-ajax请求数据

 

 

Ext.Ajax.request({
            url: webPath+'/news/newsEastmoneyList',
            method: 'POST',
            success: function (response, options) {
                var data = Ext.decode(response.responseText);
                if(data.success){
                    list.getStore().load({page:1});
                    Ext.Msg.alert('提示','提取成功,共提取'+data.zg+'条.');
                }else{
                    Ext.Msg.alert('提示',data.error);
                }
            },
            failure: function (response, options) {
                Ext.Msg.alert('提示','提取失败,请求地址错误');
            }
        });

 

转载于:https://www.cnblogs.com/hwaggLee/p/4745215.html

你可能感兴趣的:(Ext-ajax请求数据)