我有StoreBaseOn
宣布,我想改变它的网址,然后加载它,因为我的代码需要这样做。如何更改网址?取代网址Ext.data.store
申报代码:
StoreBaseOn = new Ext.data.JsonStore({
url: [myurl],
root: 'rows',
idProperty: [myID],
autoLoad: true,
remoteSort: true,
baseParams: [myParam],
fields: ['id', 'age']
});
我知道如何改变PARAM例如StoreBaseOn.setBaseParam('group', the_group);
但如何更改网址?