JavaScript 參考手冊(cè)
JavaScript 數(shù)組對(duì)象
返回?cái)?shù)組的數(shù)目:
The result could be
length 屬性可設(shè)置或返回?cái)?shù)組中元素的數(shù)目。
所有主要瀏覽器都支持length 屬性。
設(shè)置數(shù)組的數(shù)目:
Return the length of an array: