在extjs3.x中,我使用stores baseParamsconfig属性来指定用于加载存储的参数.
extjs中不再存在此属性4.我应该怎么做而不是这个?
同样在extjs3中,我能够通过使用代理配置属性来指定存储代理是a GET还是POST方法method.我应该怎么做而不是这个?
我的ExtJs 3代码 - >
var store = new Ext.data.JsonStore({
root: 'Data',
baseParams: {
StartDate: '',
EndDate: '''
},//baseParams
proxy: new Ext.data.HttpProxy({
url: 'Time/Timesheet',
method: 'POST'
})//proxy
});//new Ext.data.JsonStore
Run Code Online (Sandbox Code Playgroud)