// initLocator.selectedPhase是一个ArrayCollection对象实例
// phaseList是一个List对象实例
// 赋值失败
initLocator.selectedPhase = ArrayCollection(phaseList.selectedItems);
// 赋值失败
initLocator.selectedPhase = phaseList.selectedItems as ArrayCollection;
// 赋值成功
initLocator.selectedPhase = new ArrayCollection(phaseList.selectedItems);
List.selectedItems 和 ArrayCollection 之间的转换
最新推荐文章于 2024-08-02 19:11:40 发布