【发布时间】:2013-09-29 07:53:30
【问题描述】:
下面是我用来创建模态的代码-
Ext.Viewport.add({
xtype: 'panel',
centered: true,
style: {
'background-color': 'transparent;'
},
cls: 'my-panel',
float: true,
modal: {
style: {
'opacity': '0.5'
}
},
width: '100%',
height: '86%',
styleHtmlContent: true,
items: [
{
}
]
});
我有一个包含数据的数组。我需要遍历该数组并将值放入上面示例的 items 属性中。但我不能在那里使用循环。有没有办法通过该数组进行循环并将值放入项目中?提前致谢。
【问题讨论】:
标签: javascript extjs sencha-touch sencha-touch-2