共用方式為


getLength 方法(用戶端 API 參考)

取得集合中的項目計數。

語法

collection.getLength()

返回值

類型:數字

描述:集合中的項目計數。

用戶端 API 中的集合
forEach