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('提示','提取失败,请求地址错误');
            }
        });

 

posted @ 2015-08-20 15:03  243573295  阅读(836)  评论(0编辑  收藏  举报