如何阅读示范店ExtJS的额外的属性? [英] How to read extra properties from model store EXTJs?

查看:108
本文介绍了如何阅读示范店ExtJS的额外的属性?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

的Json读者被定义为存储如下:

​Json reader in is defined for the store as follows:

Ext.define('App.store.MyList', {
    extend : 'Ext.data.Store',
    model : 'App.model.MyList',
    pageSize : 100,
    proxy : {
       type : 'ajax',
         actionMethods : {
                    create : 'POST',
                    read : 'POST',
                    update : 'POST',
                    destroy : 'POST'
        },
        root : 'results',
        url : 'aaa.htm',
        reader : {
                    type : 'json',
                    root : 'results',
                    totalProperty: 'totalCount',
                    extraProperty: 'abcd'
    },
    simpleSortMode : true
     }
});

我如何读取额外的属性的根目录之外?我试图把一个,它并没有在里面工作。

How do I read extra property outside the root? I tried to put one inside the reader, it did not work.

推荐答案

试试这个

grid.getStore().getProxy().getReader().extraProperty

这篇关于如何阅读示范店ExtJS的额外的属性?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆