How to configure ExtJS 4 Store (proxy and reader) to read metadata

前端 未结 3 929
攒了一身酷
攒了一身酷 2021-02-03 13:25

My question is how to get metadata besides totalRecords, in my case it is version, code, searchquery (please look at json).

{
\"result\": {
    \"version\":\"1\         


        
3条回答
  •  清歌不尽
    2021-02-03 13:54

    Take a look at Ext.data.Proxy class and more specifically processResponse() method. If you need to extract any additional data - you will have to extend standard class and change that method.

提交回复
热议问题