不太清楚什么样的场景http://www.itniwo.net/blog/v/184574.html
希望可以帮助到你 - -

解决方案 »

  1.   

            Ext.define('LogServer.store.Define', {
                extend: 'Ext.data.Store',
                model: 'LogServer.model.Define',
                autoLoad: true,
                constructor: function (config) {
                    this.proxy.extraParams.b = config.option;
                    this.callParent();
                },

                proxy: {
                    type: 'ajax',
                    url: 'data.txt',
                    extraParams: {
                        a: 2
                    },
                    reader: {
                        type: 'json',
                        root: 'datas',
                        successProperty: 'success'
                    }
                }        });
      

  2.   


    场景是这样的, 定义了一个store,但是在定义的时候只能确定一部分属性, 另外一部分属性需要在使用的时候才能确定,比如ajax发给php的参数内容, 甚至是ajax发给php的请求的路径等等。我那个例子就是说定义store的时候,无法确定ajax发送给php的参数b的值,只有create的时候传进去。