Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Docs
提交
91711548
D
Docs
项目概览
OpenHarmony
/
Docs
大约 2 年 前同步成功
通知
161
Star
293
Fork
28
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
Docs
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
91711548
编写于
3月 23, 2022
作者:
W
wusongqing
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
updated docs
Signed-off-by:
N
wusongqing
<
wusongqing@huawei.com
>
上级
3d43f67e
变更
9
显示空白变更内容
内联
并排
Showing
9 changed file
with
20 addition
and
30 deletion
+20
-30
en/application-dev/reference/apis/js-apis-deque.md
en/application-dev/reference/apis/js-apis-deque.md
+0
-1
en/application-dev/reference/apis/js-apis-hashmap.md
en/application-dev/reference/apis/js-apis-hashmap.md
+1
-1
en/application-dev/reference/apis/js-apis-hashset.md
en/application-dev/reference/apis/js-apis-hashset.md
+1
-1
en/application-dev/reference/apis/js-apis-lightweightmap.md
en/application-dev/reference/apis/js-apis-lightweightmap.md
+3
-3
en/application-dev/reference/apis/js-apis-lightweightset.md
en/application-dev/reference/apis/js-apis-lightweightset.md
+6
-6
en/application-dev/reference/apis/js-apis-linkedlist.md
en/application-dev/reference/apis/js-apis-linkedlist.md
+2
-8
en/application-dev/reference/apis/js-apis-list.md
en/application-dev/reference/apis/js-apis-list.md
+3
-7
en/application-dev/reference/apis/js-apis-plainarray.md
en/application-dev/reference/apis/js-apis-plainarray.md
+3
-3
en/application-dev/reference/apis/js-apis-vector.md
en/application-dev/reference/apis/js-apis-vector.md
+1
-0
未找到文件。
en/application-dev/reference/apis/js-apis-deque.md
浏览文件 @
91711548
...
@@ -154,7 +154,6 @@ deque.insertEnd(4);
...
@@ -154,7 +154,6 @@ deque.insertEnd(4);
deque.insertFront(5);
deque.insertFront(5);
deque.insertFront(2);
deque.insertFront(2);
deque.insertFront(4);
deque.insertFront(4);
deque.popLast();
let result = deque.popLast();
let result = deque.popLast();
```
```
...
...
en/application-dev/reference/apis/js-apis-hashmap.md
浏览文件 @
91711548
...
@@ -319,7 +319,7 @@ let result = hashMap.replace("sdfs", 357);
...
@@ -319,7 +319,7 @@ let result = hashMap.replace("sdfs", 357);
### forEach
### forEach
forEach(callbackfn: (value: V, key?: K, map?: HashMap
<K
,
V
>
) => void, thisArg?: Object): void
forEach(callbackfn: (value
?
: V, key?: K, map?: HashMap
<K
,
V
>
) => void, thisArg?: Object): void
Uses a callback to traverse the entries in this container and obtain their position indexes.
Uses a callback to traverse the entries in this container and obtain their position indexes.
...
...
en/application-dev/reference/apis/js-apis-hashset.md
浏览文件 @
91711548
...
@@ -184,7 +184,7 @@ while(temp != undefined) {
...
@@ -184,7 +184,7 @@ while(temp != undefined) {
### forEach
### forEach
forEach(callbackfn: (value: T, key?: T, set?: HashSet
<
T
>
) => void, thisArg?: Object): void
forEach(callbackfn: (value
?
: T, key?: T, set?: HashSet
<
T
>
) => void, thisArg?: Object): void
Uses a callback to traverse the entries in this container and obtain their position indexes.
Uses a callback to traverse the entries in this container and obtain their position indexes.
...
...
en/application-dev/reference/apis/js-apis-lightweightmap.md
浏览文件 @
91711548
...
@@ -510,7 +510,7 @@ while(temp != undefined) {
...
@@ -510,7 +510,7 @@ while(temp != undefined) {
### forEach
### forEach
forEach(callbackfn: (value: V, key?: K, map?: LightWeightMap
<K
,
V
>
) => void, thisArg?: Object): void
forEach(callbackfn: (value
?
: V, key?: K, map?: LightWeightMap
<K
,
V
>
) => void, thisArg?: Object): void
Uses a callback to traverse the entries in this container and obtain their position indexes.
Uses a callback to traverse the entries in this container and obtain their position indexes.
...
@@ -569,7 +569,7 @@ while(temp != undefined) {
...
@@ -569,7 +569,7 @@ while(temp != undefined) {
### toString
### toString
toString():
s
tring
toString():
S
tring
Concatenates the entries in this container into a string and returns the string.
Concatenates the entries in this container into a string and returns the string.
...
@@ -577,7 +577,7 @@ Concatenates the entries in this container into a string and returns the string.
...
@@ -577,7 +577,7 @@ Concatenates the entries in this container into a string and returns the string.
| Type| Description|
| Type| Description|
| -------- | -------- |
| -------- | -------- |
|
s
tring | Returns a string.|
|
S
tring | Returns a string.|
**Example**
**Example**
...
...
en/application-dev/reference/apis/js-apis-lightweightset.md
浏览文件 @
91711548
...
@@ -160,7 +160,7 @@ Checks whether this container has the specified key.
...
@@ -160,7 +160,7 @@ Checks whether this container has the specified key.
let lightWeightSet = new LightWeightSet();
let lightWeightSet = new LightWeightSet();
let result = lightWeightSet.has(123);
let result = lightWeightSet.has(123);
lightWeightSet.add(123);
lightWeightSet.add(123);
let
result = lightWeightSet.has(123);
result = lightWeightSet.has(123);
```
```
...
@@ -188,7 +188,7 @@ Checks whether this container contains objects of the same type as the specified
...
@@ -188,7 +188,7 @@ Checks whether this container contains objects of the same type as the specified
let lightWeightSet = new LightWeightSet();
let lightWeightSet = new LightWeightSet();
lightWeightSet.add("Ahfbrgrbgnutfodgorrogorgrogofdfdf");
lightWeightSet.add("Ahfbrgrbgnutfodgorrogorgrogofdfdf");
lightWeightSet.add("sdfs");
lightWeightSet.add("sdfs");
let obj =
{"Ahfbrgrbgnutfodgorrogorgrogofdfdf", "sdfs"}
;
let obj =
["Ahfbrgrbgnutfodgorrogorgrogofdfdf", "sdfs"]
;
let result = lightWeightSet.equal(obj);
let result = lightWeightSet.equal(obj);
```
```
...
@@ -223,7 +223,7 @@ Obtains the position index of the entry with the specified key in this container
...
@@ -223,7 +223,7 @@ Obtains the position index of the entry with the specified key in this container
| Name| Type| Mandatory| Description|
| Name| Type| Mandatory| Description|
| -------- | -------- | -------- | -------- |
| -------- | -------- | -------- | -------- |
| key
| T | Yes| Key of the entry to query.|
| key| T | Yes| Key of the entry to query.|
**Return value**
**Return value**
...
@@ -251,7 +251,7 @@ Removes an entry of the specified key from this container.
...
@@ -251,7 +251,7 @@ Removes an entry of the specified key from this container.
| Name| Type| Mandatory| Description|
| Name| Type| Mandatory| Description|
| -------- | -------- | -------- | -------- |
| -------- | -------- | -------- | -------- |
| key
| T | Yes| Key of the entry to remove.|
| key| T | Yes| Key of the entry to remove.|
**Return value**
**Return value**
...
@@ -414,7 +414,7 @@ while(index < lightWeightSet.length) {
...
@@ -414,7 +414,7 @@ while(index < lightWeightSet.length) {
### forEach
### forEach
forEach(callbackfn: (value: T, key?: T, set?: LightWeightSet
<
T
>
) => void, thisArg?: Object): void
forEach(callbackfn: (value
?
: T, key?: T, set?: LightWeightSet
<
T
>
) => void, thisArg?: Object): void
Uses a callback to traverse the entries in this container and obtain their position indexes.
Uses a callback to traverse the entries in this container and obtain their position indexes.
...
@@ -429,7 +429,7 @@ callbackfn
...
@@ -429,7 +429,7 @@ callbackfn
| Name| Type| Mandatory| Description|
| Name| Type| Mandatory| Description|
| -------- | -------- | -------- | -------- |
| -------- | -------- | -------- | -------- |
| value | T | Yes| Value of the entry that is currently traversed.|
| value | T | Yes| Value of the entry that is currently traversed.|
| key
| T | No| Key of the entry that is currently traversed (same as
**value**
).|
| key| T | No| Key of the entry that is currently traversed (same as
**value**
).|
| set | LightWeightSet
<
T
>
| No| Instance that invokes the
**forEach**
method.|
| set | LightWeightSet
<
T
>
| No| Instance that invokes the
**forEach**
method.|
**Example**
**Example**
...
...
en/application-dev/reference/apis/js-apis-linkedlist.md
浏览文件 @
91711548
...
@@ -27,16 +27,10 @@ SystemCapability.Utils.Lang
...
@@ -27,16 +27,10 @@ SystemCapability.Utils.Lang
### constructor
### constructor
constructor(
head?: NodeObj
<
T
>
, tail?: NodeObj
<
T
>
)
constructor()
A constructor used to create a
**LinkedList**
instance.
A constructor used to create a
**LinkedList**
instance.
**Parameters**
| Name| Type| Readable| Writable| Description|
| -------- | -------- | -------- | -------- | -------- |
| head | NodeObj
<
T
>
| Yes| No| Node object, including
**element**
,
**next**
, and
**prev**
.|
| tail | NodeObj
<
T
>
| Yes| No| Node object, including
**element**
,
**next**
, and
**prev**
.|
**Example**
**Example**
...
@@ -300,7 +294,7 @@ let result = linkedList.removeFirst();
...
@@ -300,7 +294,7 @@ let result = linkedList.removeFirst();
### removeLast
### removeLast
removeLst(): T
removeL
a
st(): T
Removes the last entry from this container.
Removes the last entry from this container.
...
...
en/application-dev/reference/apis/js-apis-list.md
浏览文件 @
91711548
...
@@ -27,15 +27,10 @@ SystemCapability.Utils.Lang
...
@@ -27,15 +27,10 @@ SystemCapability.Utils.Lang
### constructor
### constructor
constructor(
head?: NodeObj
<
T
>
)
constructor()
A constructor used to create a
**List**
instance.
A constructor used to create a
**List**
instance.
**Parameters**
| Name| Value Type | Readable| Description|
| -------- | -------- | -------- | -------- |
| head | NodeObj
<
T
>
| Yes| Node object, including
**element**
and
**next**
.|
**Example**
**Example**
...
@@ -106,7 +101,7 @@ Checks whether this container has the specified entry.
...
@@ -106,7 +101,7 @@ Checks whether this container has the specified entry.
| Name| Value Type | Mandatory| Description|
| Name| Value Type | Mandatory| Description|
| -------- | -------- | -------- | -------- |
| -------- | -------- | -------- | -------- |
| element | T | Yes| Entry to
query
.|
| element | T | Yes| Entry to
check
.|
**Return value**
**Return value**
...
@@ -465,6 +460,7 @@ list.clear();
...
@@ -465,6 +460,7 @@ list.clear();
### set
### set
set(index: number, element: T): T
set(index: number, element: T): T
Replaces an entry at the specified position in this container with a given entry.
Replaces an entry at the specified position in this container with a given entry.
**Parameters**
**Parameters**
...
...
en/application-dev/reference/apis/js-apis-plainarray.md
浏览文件 @
91711548
...
@@ -416,7 +416,7 @@ plainArray.clear();
...
@@ -416,7 +416,7 @@ plainArray.clear();
### forEach
### forEach
forEach(callbackfn: (value
: T, key?: number, PlainArray?: PlainArray
<number
,
T
>
) => void, thisArg?: Object): void
forEach(callbackfn: (value
?: T, index?: number, PlainArray?: PlainArray
<
T>
) => void, thisArg?: Object): void
Uses a callback to traverse the entries in this container and obtain their position indexes.
Uses a callback to traverse the entries in this container and obtain their position indexes.
...
@@ -431,8 +431,8 @@ callbackfn
...
@@ -431,8 +431,8 @@ callbackfn
| Name| Type | Mandatory| Description|
| Name| Type | Mandatory| Description|
| -------- | -------- | -------- | -------- |
| -------- | -------- | -------- | -------- |
| value | T | Yes| Value of the entry that is currently traversed.|
| value | T | Yes| Value of the entry that is currently traversed.|
|
key
| number | Yes| Key of the entry that is currently traversed.|
|
index
| number | Yes| Key of the entry that is currently traversed.|
| plainArray | PlainArray
<
number
,
T
>
| No| Instance that invokes the
**forEach**
API.|
| plainArray | PlainArray
<T>
| No| Instance that invokes the
**forEach**
API.|
**Example**
**Example**
...
...
en/application-dev/reference/apis/js-apis-vector.md
浏览文件 @
91711548
...
@@ -569,6 +569,7 @@ let result = vector.toSting();
...
@@ -569,6 +569,7 @@ let result = vector.toSting();
### copyToArray
### copyToArray
copyToArray(array: Array
<
T
>
): void
copyToArray(array: Array
<
T
>
): void
Copies entries in this container into an array to overwrite elements of the same position indexes.
Copies entries in this container into an array to overwrite elements of the same position indexes.
**Parameters**
**Parameters**
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录