zl程序教程

您现在的位置是:首页 >  前端

当前栏目

Ext-ajax请求数据

AJAX数据 请求 Ext
2023-09-27 14:20:52 时间

 

 

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