Sencha touch Sencha Touch:Ext.DataView不显示存储数据

Sencha touch Sencha Touch:Ext.DataView不显示存储数据,sencha-touch,Sencha Touch,我知道DataView为空的典型原因是模型或JSON错误。据我所知,我的是对的。。。所以我不确定为什么我的数据视图是空的 控制器 rpc.controllers.AboutController = new Ext.Panel({ id: 'rpc-controllers-AboutController', title: 'About', iconCls: 'info', layout: 'card', scroll: 'vertical', ite

我知道DataView为空的典型原因是模型或JSON错误。据我所知,我的是对的。。。所以我不确定为什么我的数据视图是空的

控制器

rpc.controllers.AboutController = new Ext.Panel({
    id: 'rpc-controllers-AboutController',
    title: 'About',
    iconCls: 'info',
    layout: 'card',
    scroll: 'vertical',
    items: [rpc.views.About.index],
    dockedItems: [{ xtype: 'toolbar',
        title: 'RockPointe Church | Mobile'
    }],
    listeners: {
        activate: function () {
            if (rpc.stores.AboutStore.getCount() === 0) {
                rpc.stores.AboutStore.load();
            }
        }
    }
});
查看

rpc.views.About.index = new Ext.DataView({
    id: 'rpc-views-about-index',
    itemSelector: 'div.about-index',
    tpl: '<tpl for="."><div class="about-index">{html}</div></tpl>',
    store: rpc.stores.AboutStore,
    fullscreen: true,
    scroll: 'vertical'
});
型号

rpc.models.AboutModel = Ext.regModel('rpc.models.AboutModel', {
    fields: ['html']
});
JSON

mycallback({“results”:{“html”:“…为简洁起见删除的内容…”,},“success”:true})

有人能看出我在这里做错了什么吗

没有控制台/javascript错误。参考资料显示,我实际上是在从Web服务中提取JSON

如果我使用
console.log(rpc.stores.AboutStore.getCount())
在我的
中,在
AboutController
上激活
侦听器,结果总是0,我不完全确定原因

如果您想查看请求,请查看暂存应用程序

(注意,此链接将在某个时候过期)

尝试将json值作为数组而不是对象返回。我认为Ext期望的是一个记录数组,而不是一个

比如说


“{results:[{“html”:“Your html”}]}”

尝试将json值作为数组而不是对象返回。我认为Ext期望的是一个记录数组,而不是一个

比如说


“{results:[{“html”:“Your html”}]}”

如果没有数组,就没有办法完成吗?我真的不需要这个项目。顺便说一下,这是正确的答案。我将POCO序列化为
List
,并将其发送给Sencha,它可以按预期工作。如果没有数组,就没有办法做到这一点吗?我真的不需要这个项目。顺便说一下,这是正确的答案。我将POCO序列化为
列表
,并将其发送给Sencha,其工作原理与预期一致。
rpc.models.AboutModel = Ext.regModel('rpc.models.AboutModel', {
    fields: ['html']
});