Extjs4 为什么我的jsonStore没有';你没有任何数据吗?

Extjs4 为什么我的jsonStore没有';你没有任何数据吗?,extjs4,jsonstore,Extjs4,Jsonstore,我有一个像这样的jsonStore var ch01_store = new Ext.data.JsonStore({ autoLoad:true, storeId: 'ch01_store', proxy: new Ext.data.HttpProxy({ url: 'index.php/test/get_ch01/10', method: 'POST' }), r

我有一个像这样的jsonStore

var ch01_store = new Ext.data.JsonStore({
        autoLoad:true,

        storeId: 'ch01_store',
        proxy: new Ext.data.HttpProxy({
            url: 'index.php/test/get_ch01/10',
            method: 'POST'
        }),
        root: 'data',
        totalProperty: 'results',
        remoteSort: true,
        fields: [
            {name: 'date_time', mapping: 'date_time'},
            {name: 'chart_data', mapping: 'chart_data'}
        ]
    });
“localhost/myweb/index.php/test/get_ch01/10”url会在页面上产生这个结果

   {
   "success": true,
   "results": 10,
   "data": [{
         "date_time": "5/12/2012 13:13:33",
         "chart_data": "3.5"
      },
      {
         "date_time": "5/12/2012 13:13:34",
         "chart_data": "0.0"
      },
      {
         "date_time": "5/12/2012 13:13:35",
         "chart_data": "3.5"
      },
      {
         "date_time": "5/12/2012 13:13:36",
         "chart_data": "0.0"
      },
      {
         "date_time": "5/12/2012 13:13:4",
         "chart_data": "0.0"
      },
      {
         "date_time": "5/12/2012 13:13:5",
         "chart_data": "3.5"
      },
      {
         "date_time": "5/12/2012 13:13:6",
         "chart_data": "0.0"
      },
      {
         "date_time": "5/12/2012 13:13:7",
         "chart_data": "3.5"
      },
      {
         "date_time": "5/12/2012 13:13:8",
         "chart_data": "0.0"
      },
      {
         "date_time": "5/12/2012 13:13:9",
         "chart_data": "3.5"
      }
   ]
}
但是当我被处决的时候

console.log(ch01_store.getCount()); 
日志显示零
我试图在gridPanel上填充它,结果仍然是空的,有人能帮我吗?

像这样设置代理,然后尝试:

proxy: {
    type: 'ajax',
    reader: {
        type: 'json',
        root: 'xxxxxx'
        }
}

1.您在控制台中看到如何请求和检索数据了吗?2.尝试添加
successProperty:“success”
,但这应该是默认设置value@sha:我没有在JsonStore文档中看到successProperty配置,我尝试过任何方法,但仍然不起作用。您在网络流量中看到如何检索存储数据了吗?