Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想通过使用开始索引和结束索引从 ArrayCollection 中检索选定的项目,是否有任何预定义的方法可以做到这一点......在此先感谢。
查看 toArray 和切片。
var newAC:ArrayCollection = new ArrayCollection( myAC.toArray().slice(10,20) ); //myAc = original ArrayCollection, 10 = startIndex, 20 = endIndex