阵VS ArrayCollection的Flex中VS、ArrayCollection、Flex

2023-09-08 13:41:13 作者:下页ぃ多情小姐\"\"

任何一个可以解释的阵列和ArrayCollection的Flex中?

Can any one Explain the Difference between the Array and ArrayCollection in Flex?

推荐答案

由于每LiveDocs中

As per the liveDocs

ArrayCollection类是包装   将Array公开为一类   集合,可以进行访问和   使用方法操纵和   ICollectionView的属性或   IList的接口。在操作   ArrayCollection的情况下修改   数据源;例如,如果使用   上的removeItemAt()方法   ArrayCollection的,你删除的项   从底层阵列

The ArrayCollection class is a wrapper class that exposes an Array as a collection that can be accessed and manipulated using the methods and properties of the ICollectionView or IList interfaces. Operations on a ArrayCollection instance modify the data source; for example, if you use the removeItemAt() method on an ArrayCollection, you remove the item from the underlying Array.

因此​​,其实它们是相同的,但一有更多的属性和方法。

So really they're the same, but one has more properties and methods.