且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

ExtJS4存储代理网址覆盖

更新时间:2023-09-18 21:28:16

{
    ... some tab config ...
    store: Ext.create('MyApp.store.MyTasks'),
    listeners: {
        afterrender: function(tab) {
            tab.store.getProxy().url = 'task/myMethod.json'; //<--Saki magic :)
            tab.store.load();
        }
    }
}

http://www.sencha.com/forum/showthread.php ?149809-重用 - 存储 - 更改 - 代理URL