var items: ArrayCollection = new ArrayCollection([
{Label:"item1", data:1},
{Label:"item2", data:2}
]);
comboBox.labelField="Label"
{Label:"item1", data:1},
{Label:"item2", data:2}
]);
comboBox.labelField="Label"
本文介绍了一种使用ArrayCollection初始化ComboBox的方法,通过定义一个包含Label和data属性的对象数组来填充ComboBox选项。

被折叠的 条评论
为什么被折叠?