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");
// 打印数组的长度,现在为2
print(arr.Length);
// 重设数组的长度到5
arr.length = 5;
}
最后修改:2010年11月28日 Sunday 23:01
