var gridStore = Ext.create('Ext.data.Store', {
    model: 'Writer.Person',
    autoLoad: true,
    autoSync: false,
    proxy: {
        type: 'ajax',
        api: {
            read: '?operant=2',
            create: '?operant=3',
            update: '?operant=4',
            destroy: '?operant=5'
        },
        reader: {
            type: 'json',
            successProperty: 'success',
            root: 'data',
            messageProperty: 'message',
            extraParams: {
                user_id: "some text",
                another_param: "more text"
            }
        }
    }
});


我尝试使用baseParams,params,我用提琴手看,extjs没有发送这个,怎么办?谢谢

最佳答案

选中此复选框,它会显示一些解决问题的方法:http://www.learnsomethings.com/2011/05/17/where-did-setextraparam-aka-setbaseparam-go-in-extjs-4-%E2%80%93-one-workaround/

09-25 20:52