diff --git a/zh-cn/application-dev/reference/apis/js-apis-deque.md b/zh-cn/application-dev/reference/apis/js-apis-deque.md index aa6ffa4c105b681f08e6fe8ba13d3d976d98ea7d..222bf5f5150abbfc4eeb7765f0b6b8a44c2a0fc0 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-deque.md +++ b/zh-cn/application-dev/reference/apis/js-apis-deque.md @@ -194,6 +194,7 @@ deque.forEach((value, index) => { ### getFirst getFirst(): T; + 获取Deque实例中的头元素。 **返回值:** @@ -216,6 +217,7 @@ deque.getFirst(); ### getLast getLast(): T + 获取Deque实例中的尾元素。 **返回值:** 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 89c43136bf743ce388800d2e49576c8deebea0e9..b2c3bd80907fdaff2143f0ef29e2855b587d3119 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-hashmap.md +++ b/zh-cn/application-dev/reference/apis/js-apis-hashmap.md @@ -266,7 +266,7 @@ while(temp != undefined) { values(): IterableIterator<V> -返回包含此映射中包含的键的新迭代器对象。 +返回包含此映射中包含的键值的新迭代器对象。 **返回值:** @@ -300,7 +300,7 @@ replace(key: K, value: V): boolean | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | | key | K | 是 | 依据key指定替换的元素。 | -| value | V | 是 | 添加成员数据的值。 | +| value | V | 是 | 成员数据的新值。 | **返回值:** @@ -353,7 +353,7 @@ hashMap.forEach((value, key) => { entries(): IterableIterator<[K, V]> -返回包含此映射中包含的键的新迭代器对象。 +返回包含此映射中包含的元素的新迭代器对象。 **返回值:** diff --git a/zh-cn/application-dev/reference/apis/js-apis-hashset.md b/zh-cn/application-dev/reference/apis/js-apis-hashset.md index 4733e3a4eedceb137d35abdc699af9c33a8e662a..5dd797f1c6e122e776b7702f7710f0da98e8ee66 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-hashset.md +++ b/zh-cn/application-dev/reference/apis/js-apis-hashset.md @@ -61,7 +61,7 @@ hashSet.isEmpty(); has(value: T): boolean -判断此HashSet中是否含有该指定key。 +判断此HashSet中是否含有该指定元素。 **参数:** @@ -159,7 +159,7 @@ hashSet.clear(); values(): IterableIterator<T> -返回包含此映射中包含的键的新迭代器对象。 +返回包含此映射中包含的键值的新迭代器对象。 **返回值:** @@ -217,7 +217,7 @@ hashSet.forEach((value, key) => { ### entries entries(): IterableIterator<[T, T]> -返回包含此映射中包含的键的新迭代器对象。 +返回包含此映射中包含的元素的新迭代器对象。 **返回值:** diff --git a/zh-cn/application-dev/reference/apis/js-apis-lightweightmap.md b/zh-cn/application-dev/reference/apis/js-apis-lightweightmap.md index ad3ee5d5e9f8aa5ed17c38617f14d1222e90fad9..41ed19c45881640c672680b15539b8a077b0f9e6 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-lightweightmap.md +++ b/zh-cn/application-dev/reference/apis/js-apis-lightweightmap.md @@ -314,7 +314,7 @@ set(key: K, value: V): Object | 类型 | 说明 | | -------- | -------- | -| Object | 返回添加数据后的hashmap。 | +| Object | 返回添加数据后的LightWeightMap。 | **示例:** @@ -484,7 +484,7 @@ while(temp != undefined) { values(): IterableIterator<V> -返回包含此映射中包含的键的新迭代器对象。 +返回包含此映射中包含的键值的新迭代器对象。 **返回值:** @@ -543,7 +543,7 @@ lightWeightMap.forEach((value, key) => { entries(): IterableIterator<[K, V]> -返回包含此映射中包含的键的新迭代器对象。 +返回包含此映射中包含的元素的新迭代器对象。 **返回值:** diff --git a/zh-cn/application-dev/reference/apis/js-apis-linkedlist.md b/zh-cn/application-dev/reference/apis/js-apis-linkedlist.md index 9759a3d8118f03bfd5081ba6b20cdee28ab3f8ed..24a6202ab65dd2699a1cd533cd62606a145d4fe8 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-linkedlist.md +++ b/zh-cn/application-dev/reference/apis/js-apis-linkedlist.md @@ -485,6 +485,7 @@ linkedList.clear(); ### set set(index: number, element: T): void + 将此LinkedList中指定位置的元素替换为指定元素。 **参数:** @@ -529,6 +530,7 @@ linkedList.convertToArray(); ### getFirst getFirst(): T + 获取LinkedList实例中的第一个元素。 **返回值:** @@ -551,6 +553,7 @@ linkedList.getFirst(); ### getLast getLast(): T + 获取LinkedList实例中的最后一个元素。 **返回值:** @@ -572,7 +575,7 @@ linkedList.getLast(); ### [Symbol.iterator] -[Symbol.iterator]\(): IterableIterator<T>;、 +[Symbol.iterator]\(): IterableIterator<T>; 返回一个迭代器,迭代器的每一项都是一个 JavaScript 对象,并返回该对象。 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 b57a41282d3c66ff6bdf8ffc132df0e0df58539a..4c832c5776dbdbe9f2f318600be1dec3404d0a7c 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-list.md +++ b/zh-cn/application-dev/reference/apis/js-apis-list.md @@ -532,6 +532,7 @@ list.isEmpty(); ### getFirst getFirst(): T + 获取List实例中的第一个元素。 **返回值:** @@ -554,6 +555,7 @@ list.getFirst(); ### getLast getLast(): T + 获取List实例中的最后一个元素。 **返回值:** 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 fd8733d6649872034f057f1f25b4d07820d35269..c66771b269d9ffaa9a75de6eba27baae7d86d00c 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-treemap.md +++ b/zh-cn/application-dev/reference/apis/js-apis-treemap.md @@ -230,7 +230,7 @@ set(key: K, value: V): Object | 类型 | 说明 | | -------- | -------- | -| Object | 返回添加后的hashmap | +| Object | 返回添加后的treemap | **示例:** @@ -336,7 +336,7 @@ replace(key: K, value: V): boolean | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | | key | K | 是 | 依据key指定替换的元素。 | -| value | V | 是 | 添加成员数据的值。 | +| value | V | 是 | 成员数据的新值。 | **返回值:** @@ -400,7 +400,7 @@ while(temp != undefined) { values(): IterableIterator<V> -返回包含此映射中包含的键的新迭代器对象。 +返回包含此映射中包含的键值的新迭代器对象。 **返回值:** @@ -459,7 +459,7 @@ treeMap.forEach((value, key) => { entries(): IterableIterator<[K, V]> -返回包含此映射中包含的键的新迭代器对象。 +返回包含此映射中包含的元素的新迭代器对象。 **返回值:** 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 9ba2b90d03c6d98e3f3080b345f3d0a8b29e74b6..ccc118ddc5f273681a88ab3c4b4984d2d31fac7e 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-treeset.md +++ b/zh-cn/application-dev/reference/apis/js-apis-treeset.md @@ -310,7 +310,7 @@ treeSet.clear(); values(): IterableIterator<T> -返回包含此映射中包含的键的新迭代器对象。 +返回包含此映射中包含的键值的新迭代器对象。 **返回值:** @@ -369,7 +369,7 @@ treeSet.forEach((value, key) => { entries(): IterableIterator<[T, T]> -返回包含此映射中包含的键的新迭代器对象。 +返回包含此映射中包含的元素的新迭代器对象。 **返回值:** 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 f1deb717e9b7f914ec74e1b07519c672b494c945..c3e4ed2235f160924c8c9fa0d31896685e33d671 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-vector.md +++ b/zh-cn/application-dev/reference/apis/js-apis-vector.md @@ -548,6 +548,7 @@ vector.trimToCurrentLength(2); ### toString toString(): string + 用","将Vector实例中的元素按顺序拼接成字符串。 **返回值:** @@ -570,6 +571,7 @@ vector.toSting(); ### copyToArray copyToArray(array: Array<T>): void; + 将Vector实例中的元素按照下标复制到指定数组。 **参数:** @@ -593,6 +595,7 @@ vector.copyToArray(array); ### getFirstElement getFirstElement(): T + 获取实例中的第一个元素。 **返回值:** @@ -615,6 +618,7 @@ vector.getFirstElement(); ### getLastElement getLastElement(): T + 获取Vector实例中的最后一个元素。 **返回值:** @@ -698,6 +702,7 @@ vector.getIndexFrom(4, 3); ### setLength setLength(newSize: number): void; + 设置Vector实例的元素个数。 **参数:**