dselp3944 2016-09-27 05:40
浏览 178

extjs6:如何显示通过jsonstore / proxy reader生成的json对象记录

    var store = Ext.create('Ext.data.JsonStore', {
        storeId:'thisstore',
        proxy: {
            type: 'ajax',
            url: 'Stores/ShowModule/showGrid.php',
            simpleSortMode: true,
            reader: {
                type: 'json',
                rootProperty: 'data',
                totalProperty: 'total'
            }
        },  
        fields: [a,b,c,d],
        autoLoad: true
    });

I am pretty newbie to extjs 6, and I got this jsonstore that would retrieve the data from the php output using proxy reader. I wonder how to print out the entire json object obtained from this jsonstore into console.log, as to verify if that's exactly the json structure I want.

Many thanks in advance.

  • 写回答

2条回答 默认 最新

  • dongyun7897 2016-09-27 06:33
    关注

    In ExtJS 6 , after the store is loaded , you can print records in the console as :

    console.log(store.getData());
    
    评论

报告相同问题?

悬赏问题

  • ¥15 对于相关问题的求解与代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 信号傅里叶变换在matlab上遇到的小问题请求帮助
  • ¥15 保护模式-系统加载-段寄存器
  • ¥15 电脑桌面设定一个区域禁止鼠标操作
  • ¥15 求NPF226060磁芯的详细资料
  • ¥15 使用R语言marginaleffects包进行边际效应图绘制
  • ¥20 usb设备兼容性问题
  • ¥15 错误(10048): “调用exui内部功能”库命令的参数“参数4”不能接受空数据。怎么解决啊
  • ¥15 安装svn网络有问题怎么办