How can I change/add params on a store

后端 未结 4 663
萌比男神i
萌比男神i 2020-12-28 23:11

On a sencha-touch, here\'s is my store declaration

Ext.regStore(\'newsStore\',  {
    model: \'News\',
    autoLoad: true,
    proxy: {
        type: \'ajax\         


        
4条回答
  •  没有蜡笔的小新
    2020-12-29 00:01

    You could try using extraParams:

    Ext.regStore('newsStore',  {
        model: 'News',
        autoLoad: true,
        proxy: {
            type: 'ajax',
            url: '../news/list.form',
            reader: {
                type: 'json',
                root: ''
            },
            extraParams: {
                format: 'json'
            }
        },                        
    });
    

提交回复
热议问题