1
我在学习sencha touch。 我在容器中使用xtype:'list'时遇到了一个问题。即它没有向我展示任何东西。我的代码是:使用容器或面板在sencha touch中的列表
{
xtype:'container',
items:[
{
xtype: 'list',
id: 'lists',
fields: [{name:'name'}],
store: {
data: [
{name: 'Cowper'},
{name: 'Everett'},
{name: 'University'},
{name: 'Forest'}
]
},
itemTpl: '<div>{name}</div>'
}
],
}
请指出我错在哪里? 任何帮助将是伟大的:) 在此先感谢。