0

如何将已删除元素的空间重新分配给 Flex 中二维数组中的现有元素并删除相同的重复项?我有一个数组

Asia India Chennai 100
Asia India Chennai 200
Asia India Calcutta 300

我需要一个输出为:

India Chennai 100
India Chennai 200
India Calcutta 300 

以至于亚洲空间被印度占领。

现在正在使用“删除”命令删除第一列:

delete arrname[g][0] where "g" is the length of the array.
4

1 回答 1

0

I guess you are looking for shift method of the Array. shift method removes first element and shift remaining elements to the beginning. For more complex removing tasks you can use splice function.

Just read this Array documentation, there are lots of useful method in Array class.

于 2013-05-02T16:57:27.887 回答