Array.length长度


var length : int

Description描述

the length property of the array that returns or sets the number of elements in array

数组的长度属性, 返回或设置数组中元素的数量    。

function Start () {var arr = Array ("Hello", "World");// 打印数组的长度,现在为2print(arr.Length);// 重设数组的长度到5arr.length = 5;}


,