Array.Concat连接

function Concat (array : Array, optionalArray0 : Array, optionalArray1 : Array) : Array

Description描述

Concat joins two or more arrays. The method does not change the existing arrays

and returns a copy of the joined array

连接两个或更多数组,这个方法不会改变现有的数组,返回连接后数组的一个拷贝。

function Start () {

	var arr = new Array ("Hello", "World");

	var arr2 = new Array ("!");



	// joined now contains all 3 strings //连接arr和arr2数组

	var joined = arr.Concat(arr2);



	// prints "Hello","World","!" //打印数组,两个数组中的3个字符串连接一起被输出。

	print(joined);

}
Page last updated: 2010-11-28