EXT JS Store's Proxy: readers and writers

前端 未结 2 1344
一个人的身影
一个人的身影 2021-02-06 16:12

In the documentation, i have found a store instantiated like this:

var store = Ext.create(\'Ext.data.Store\', {
    autoLoad: true,
    model: \"User\",
    proxy: {
         


        
2条回答
  •  故里飘歌
    2021-02-06 16:35

    Actually you are correct - it will use the same url as for reader.

    Proxy is a mediator between your model/store on a client and your server code on another side. Readers are used for reading data and you could configure stuff like formatting, specify root etc. Writers are in charge of save/update requests to the server.

    Check this article: http://edspencer.net/2011/02/proxies-extjs-4.html

提交回复
热议问题