首页 新闻 会员 周边

sencha touch list显示问题

0
悬赏园豆:10 [已关闭问题] 关闭于 2016-05-05 15:44

Ext.define('hxApp.view.tab', { extend: 'Ext.tab.Panel', requires: [ 'Ext.Container' ], config: { items: [ { xtype: 'container', title: '个人计划', items: [{ xtype: 'list', id: 'list1', itemTpl: '{Name}' , title: '计划列表' }] }, { xtype: 'container', title: '监控计划' }, { xtype: 'container', title: '审批计划' } ] } }); Ext.define('TextModel', { extend: 'Ext.data.Model', fields: ['Name'] }); Ext.application({ views: [ 'tab' ], name: 'hxApp', launch: function () { Ext.create('hxApp.view.tab', { fullscreen: true }); Ext.Ajax.request({ url: 'Default.aspx/GetData', method: "post", headers: { 'Content-Type': 'application/json;utf-8' }, success: function (response, options) { var obj = eval('(' + response.responseText + ')'); var d = eval('(' + obj.d + ')'); var myList = Ext.getCmp('list1'); var store = Ext.create('Ext.data.Store', { model: 'TextModel', data: d }); myList.setStore(store); } }); } });

我完整的代码是这样的,最后我给  myList.setStore(store);设置了store,但是却没有显示到界面的list中,我调试了下,list里面store是赋了值得,谁能帮我看一下,问题出在哪里

翻墙小龙虾的主页 翻墙小龙虾 | 初学一级 | 园豆:34
提问于:2015-05-25 17:16
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册