From ccf1ab5e3812bd87ddec166f7692441eaad914de Mon Sep 17 00:00:00 2001 From: wusongqing Date: Mon, 28 Feb 2022 10:18:56 +0800 Subject: [PATCH] udpated docs Signed-off-by: wusongqing --- zh-cn/application-dev/reference/apis/js-apis-deque.md | 2 ++ zh-cn/application-dev/reference/apis/js-apis-hashmap.md | 6 +++--- zh-cn/application-dev/reference/apis/js-apis-hashset.md | 6 +++--- .../reference/apis/js-apis-lightweightmap.md | 6 +++--- .../application-dev/reference/apis/js-apis-linkedlist.md | 5 ++++- zh-cn/application-dev/reference/apis/js-apis-list.md | 2 ++ zh-cn/application-dev/reference/apis/js-apis-treemap.md | 8 ++++---- zh-cn/application-dev/reference/apis/js-apis-treeset.md | 4 ++-- zh-cn/application-dev/reference/apis/js-apis-vector.md | 5 +++++ 9 files changed, 28 insertions(+), 16 deletions(-) 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 aa6ffa4c10..222bf5f515 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 89c43136bf..b2c3bd8090 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 4733e3a4ee..5dd797f1c6 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 ad3ee5d5e9..41ed19c458 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 9759a3d811..24a6202ab6 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 b57a41282d..4c832c5776 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 fd8733d664..c66771b269 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 9ba2b90d03..ccc118ddc5 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 f1deb717e9..c3e4ed2235 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实例的元素个数。 **参数:** -- GitLab