The second way to empty an array is to set its length to zero: a.length = 0;. The length property is read/write property of an Array object.
確定! 回上一頁