我有以下商店:
var store = new Ext.data.Store({ model: 'Result',proxy: { type: 'ajax',extraParams: {search_term : term},url : 'find.pl' },});
如何在运行时更改用于调用url的参数(例如search_term)?
解决方法
把它想象成 –
您不会调用该URL.你加载商店.
您不会调用该URL.你加载商店.
现在,只要您尝试使用以下内容加载商店,就可以指定search_term值:
store.load({ params:{ search_term:'my runtime search term' } //other options like a callback function,append/add flag,etc. });