var Store = Ext.create('Ext.data.Store', {
pageSize: pageSize,
model: 'Ext.data.Model name',
autoLoad: false,
proxy: {
type: 'ajax',
url: ' Request path',
getMethod: function(){ return 'POST'; },//Highlight, set the request method, the default is GET
reader: {
type: 'json',
root : 'Data',
totalProperty: 'totalCount'
}
},
listeners: {
'beforeload': function (store, op, options) {
var params = {
//Parameters
};
Ext.apply(store.proxy.extraParams, params);
}
}
});