MemoryProxy-JsonReader-HttpProxy-EXT-example

 ds = new Ext.data.Store({
            proxy:  new Ext.data.HttpProxy({url:'ext/x.js'}),
            reader: new Ext.data.JsonReader({root: 'data',totalProperty:'totalCount'},rt)
        });

  var store = new Ext.data.Store({
    proxy: new Ext.data.MemoryProxy(Ext.util.JSON.decode(InitData.value)),
    reader: new Ext.data.JsonReader({
      root: 'tasks'
    }, Item),

    sortInfo:{field:'project', direction:'ASC'}
  });


3 comments

  1. 我有个问题 说道:

    如果我现在想将某个Action(如 query.do 返回的ArrayList)中取得集合作为这里的 Store 怎么做???

  2. Rob Summar 说道:

    I simply want to say I’m all new to blogging and site-building and absolutely enjoyed this web page. Probably I’m planning to bookmark your website . You amazingly have outstanding articles and reviews. Many thanks for revealing your webpage.

  3. Zelma Dormanen 说道:

    The next time I learn a blog, I hope that it doesnt disappoint me as a lot as this one. I imply, I know it was my option to read, however I actually thought youd have one thing interesting to say. All I hear is a bunch of whining about one thing that you could repair if you happen to werent too busy in search of attention.

发表评论

电子邮件地址不会被公开。