diff --git a/zh-cn/application-dev/reference/apis/js-apis-hashmap.md b/zh-cn/application-dev/reference/apis/js-apis-hashmap.md index cffd137ac8152bcdad774d7135a2cdb23f22ddc0..ed609c72be5bc7b3556a759c78d8e3dd67b32c96 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-hashmap.md +++ b/zh-cn/application-dev/reference/apis/js-apis-hashmap.md @@ -351,7 +351,7 @@ hashMap.forEach((value, key) => { ### entries -entries(): IterableIterator<[K, V]> +entries(): IterableIterator<[K, V]> 返回包含此映射中包含的键值对的新迭代器对象。 @@ -359,7 +359,7 @@ entries(): IterableIterator<[K, V]> | 类型 | 说明 | | -------- | -------- | -| IterableIterator<[K, V]> | 返回一个迭代器。 | +| IterableIterator<[K, V]> | 返回一个迭代器。 | **示例:** @@ -387,7 +387,7 @@ while(temp != undefined) { | 类型 | 说明 | | -------- | -------- | -| IterableIterator<[K, V]> | 返回一个迭代器。 | +| IterableIterator<[K, V]> | 返回一个迭代器。 | **示例:** ``` diff --git a/zh-cn/application-dev/reference/apis/js-apis-list.md b/zh-cn/application-dev/reference/apis/js-apis-list.md index 4caf882c015ee5feb18226bdc5ed4a552a693526..4a986350a38174f2f037b84ecdec23921972a95a 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-list.md +++ b/zh-cn/application-dev/reference/apis/js-apis-list.md @@ -578,7 +578,7 @@ getLast(): T **示例:** ``` -let list = new Vector(); +let list = new List(); list.add(2); list.add(4); list.add(5); 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 be8fbccd2715f4acdd8d7febbd4f1479f95dbe48..498e53cbf54f3b9ee2838b9eb7b2d02f6e28d0c4 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-plainarray.md +++ b/zh-cn/application-dev/reference/apis/js-apis-plainarray.md @@ -416,7 +416,7 @@ plainArray.clear(); ### forEach -forEach(callbackfn: (value: T, index?: number, PlainArray?: PlainArray) => void, thisArg?: Object): void +forEach(callbackfn: (value: T, index?: number, PlainArray?: PlainArray<T>) => void, thisArg?: Object): void 通过回调函数来遍历实例对象上的元素以及元素对应的下标。 @@ -432,7 +432,7 @@ callbackfn的参数说明: | -------- | -------- | -------- | -------- | | value | T | 是 | 当前遍历到的元素键值对的值。 | | index | number | 否 | 当前遍历到的元素键值对的键。 | -| plainArray | PlainArray | 否 | 当前调用forEach方法的实例对象。 | +| PlainArray | PlainArray<T>| 否 | 当前调用forEach方法的实例对象。 | **示例:** @@ -456,7 +456,7 @@ plainArray.forEach((value, key) => { | 类型 | 说明 | | -------- | -------- | -| IterableIterator<[number, T]> | 返回一个迭代器。 | +| IterableIterator<[number, T]> | 返回一个迭代器。 | **示例:** diff --git a/zh-cn/application-dev/reference/apis/js-apis-treemap.md b/zh-cn/application-dev/reference/apis/js-apis-treemap.md index d49b3e210e250dac04158bf37f36622d79885db5..2af66500fe33f80c927be0ce08e8b8b0a5bff44d 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-treemap.md +++ b/zh-cn/application-dev/reference/apis/js-apis-treemap.md @@ -195,7 +195,7 @@ let result = treeMap.getLastKey(); setAll(map: TreeMap): void -将一个treemap中的所有元素组添加到另一个treeMap中。 +将一个TreeMap中的所有元素组添加到另一个TreeMap中。 **参数:** @@ -218,7 +218,7 @@ treeMap.setAll(map); set(key: K, value: V): Object -向treemap中添加一组数据。 +向容器中添加一组数据。 **参数:** @@ -330,7 +330,7 @@ let result = treeMap.getHigherKey("sdfs"); replace(key: K, newValue: V): boolean -对TreeMap中一组数据进行更新(替换)。 +对容器中一组数据进行更新(替换)。 **参数:** @@ -358,7 +358,7 @@ let result = treeMap.replace("sdfs", 357); clear(): void -清除TreeMap中的所有元素,并把length置为0。 +清除容器中的所有元素,并把length置为0。 **示例:** diff --git a/zh-cn/application-dev/reference/apis/js-apis-treeset.md b/zh-cn/application-dev/reference/apis/js-apis-treeset.md index 473db461ba74cc8b961402595ee66d9abea2c3d7..b55013bd1deb75c13f43b13028724d54f25d2cc4 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-treeset.md +++ b/zh-cn/application-dev/reference/apis/js-apis-treeset.md @@ -139,7 +139,7 @@ let result = treeSet.getLastValue(); add(value: T): boolean -向TreeSet中添加一组数据。 +向容器中添加一组数据。 **参数:**