Flex 中的数组与 ArrayCollection [英] Array Vs ArrayCollection in Flex

查看:24
本文介绍了Flex 中的数组与 ArrayCollection的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

谁能解释一下Flex中Array和ArrayCollection的区别?

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

推荐答案

根据 liveDocs

As per the liveDocs

ArrayCollection 类是一个包装器将数组公开为可以访问的集合和使用方法和ICollectionView 的属性或IList 接口.对 a 的操作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.

这篇关于Flex 中的数组与 ArrayCollection的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆