Extjs 4.0版本
var Store = Ext.create(‘Ext.data.Store‘, { pageSize: pageSize, model: ‘Ext.data.Model名称‘, autoLoad: false, proxy: { type: ‘ajax‘, url: ‘请求路径‘, //actionMethods: ‘post‘, getMethod: function(){ return ‘POST‘; },//亮点,设置请求方式,默认为GET reader: { type: ‘json‘, root: ‘Data‘, totalProperty: ‘totalCount‘ } }, listeners: { ‘beforeload‘: function (store, op, options) { var params = { //参数 }; Ext.apply(store.proxy.extraParams, params); } } });
Extjs 6.0版本
原文地址:https://www.cnblogs.com/wind-wang/p/10579906.html
时间: 2024-10-06 00:45:59