diff --git a/zh-cn/application-dev/reference/apis/js-apis-arraylist.md b/zh-cn/application-dev/reference/apis/js-apis-arraylist.md index efda37f74d406b30d34ba67934e19915b80be119..7435c4bd4aad33fb8e261a1a7b3368e94091a011 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-arraylist.md +++ b/zh-cn/application-dev/reference/apis/js-apis-arraylist.md @@ -537,7 +537,7 @@ arrayList.add(2); arrayList.add(4); arrayList.add(5); arrayList.add(4); -arrayList.trimToCurrentLength(2); +arrayList.trimToCurrentLength(); ``` ### [Symbol.iterator] diff --git a/zh-cn/application-dev/reference/apis/js-apis-lightweightset.md b/zh-cn/application-dev/reference/apis/js-apis-lightweightset.md index 2780befaf7d6a95e9ad30924d514354eee48af64..1ff86fc1903ddf9d9c92a779fcf3814df084ca62 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-lightweightset.md +++ b/zh-cn/application-dev/reference/apis/js-apis-lightweightset.md @@ -193,7 +193,7 @@ let result = lightWeightSet.equal(obj); ``` -### ensureCapacityTo +### increaseCapacityTo increaseCapacityTo(minimumCapacity: number): void @@ -209,7 +209,7 @@ increaseCapacityTo(minimumCapacity: number): void ``` let lightWeightSet = new LightWeightSet(); -lightWeightSet.ensureCapacityTo(10); +lightWeightSet.increaseCapacityTo(10); ``` diff --git a/zh-cn/application-dev/reference/apis/js-apis-plainarray.md b/zh-cn/application-dev/reference/apis/js-apis-plainarray.md index ab5dc6d0d61684d2c31f7299201c63aa3f37d912..0ff829fa745d6d71780cffdcd85b7e89026dba03 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-plainarray.md +++ b/zh-cn/application-dev/reference/apis/js-apis-plainarray.md @@ -117,7 +117,7 @@ let result = plainArray.get(1); getIndexOfKey(key: number): number; -查找指定元素第一次出现的下标值,如果没有找到该元素返回-1。 +查找指定key第一次出现的下标值,如果没有找到该元素返回-1。 **参数:** diff --git a/zh-cn/application-dev/reference/apis/js-apis-vector.md b/zh-cn/application-dev/reference/apis/js-apis-vector.md index d19a085e4196163f08e93b6386bc432bd8b5216b..3e9285e735f00541bdee712b0f1488123d8a65a9 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-vector.md +++ b/zh-cn/application-dev/reference/apis/js-apis-vector.md @@ -540,7 +540,7 @@ vector.add(2); vector.add(4); vector.add(5); vector.add(4); -vector.trimToCurrentLength(2); +vector.trimToCurrentLength(); ``` ### toString