Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Docs
提交
623100fa
D
Docs
项目概览
OpenHarmony
/
Docs
大约 1 年 前同步成功
通知
159
Star
292
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看板
未验证
提交
623100fa
编写于
3月 24, 2022
作者:
O
openharmony_ci
提交者:
Gitee
3月 24, 2022
浏览文件
操作
浏览文件
下载
差异文件
!2382 Done! 2182:Align the docs document with the d.ts document
Merge pull request !2382 from wusongqing/TR2182
上级
33eb639c
91711548
变更
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
浏览文件 @
623100fa
...
...
@@ -154,7 +154,6 @@ deque.insertEnd(4);
deque.insertFront(5);
deque.insertFront(2);
deque.insertFront(4);
deque.popLast();
let result = deque.popLast();
```
...
...
en/application-dev/reference/apis/js-apis-hashmap.md
浏览文件 @
623100fa
...
...
@@ -319,7 +319,7 @@ let result = hashMap.replace("sdfs", 357);
### 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.
...
...
en/application-dev/reference/apis/js-apis-hashset.md
浏览文件 @
623100fa
...
...
@@ -184,7 +184,7 @@ while(temp != undefined) {
### 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.
...
...
en/application-dev/reference/apis/js-apis-lightweightmap.md
浏览文件 @
623100fa
...
...
@@ -510,7 +510,7 @@ while(temp != undefined) {
### 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.
...
...
@@ -569,7 +569,7 @@ while(temp != undefined) {
### toString
toString():
s
tring
toString():
S
tring
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|
| -------- | -------- |
|
s
tring | Returns a string.|
|
S
tring | Returns a string.|
**Example**
...
...
en/application-dev/reference/apis/js-apis-lightweightset.md
浏览文件 @
623100fa
...
...
@@ -160,7 +160,7 @@ Checks whether this container has the specified key.
let lightWeightSet = new LightWeightSet();
let result = lightWeightSet.has(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
let lightWeightSet = new LightWeightSet();
lightWeightSet.add("Ahfbrgrbgnutfodgorrogorgrogofdfdf");
lightWeightSet.add("sdfs");
let obj =
{"Ahfbrgrbgnutfodgorrogorgrogofdfdf", "sdfs"}
;
let obj =
["Ahfbrgrbgnutfodgorrogorgrogofdfdf", "sdfs"]
;
let result = lightWeightSet.equal(obj);
```
...
...
@@ -223,7 +223,7 @@ Obtains the position index of the entry with the specified key in this container
| Name| Type| Mandatory| Description|
| -------- | -------- | -------- | -------- |
| key
| T | Yes| Key of the entry to query.|
| key| T | Yes| Key of the entry to query.|
**Return value**
...
...
@@ -251,7 +251,7 @@ Removes an entry of the specified key from this container.
| Name| Type| Mandatory| Description|
| -------- | -------- | -------- | -------- |
| key
| T | Yes| Key of the entry to remove.|
| key| T | Yes| Key of the entry to remove.|
**Return value**
...
...
@@ -414,7 +414,7 @@ while(index < lightWeightSet.length) {
### 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.
...
...
@@ -429,7 +429,7 @@ callbackfn
| Name| Type| Mandatory| Description|
| -------- | -------- | -------- | -------- |
| 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.|
**Example**
...
...
en/application-dev/reference/apis/js-apis-linkedlist.md
浏览文件 @
623100fa
...
...
@@ -27,16 +27,10 @@ SystemCapability.Utils.Lang
### constructor
constructor(
head?: NodeObj
<
T
>
, tail?: NodeObj
<
T
>
)
constructor()
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**
...
...
@@ -300,7 +294,7 @@ let result = linkedList.removeFirst();
### removeLast
removeLst(): T
removeL
a
st(): T
Removes the last entry from this container.
...
...
en/application-dev/reference/apis/js-apis-list.md
浏览文件 @
623100fa
...
...
@@ -27,15 +27,10 @@ SystemCapability.Utils.Lang
### constructor
constructor(
head?: NodeObj
<
T
>
)
constructor()
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**
...
...
@@ -106,7 +101,7 @@ Checks whether this container has the specified entry.
| Name| Value Type | Mandatory| Description|
| -------- | -------- | -------- | -------- |
| element | T | Yes| Entry to
query
.|
| element | T | Yes| Entry to
check
.|
**Return value**
...
...
@@ -465,6 +460,7 @@ list.clear();
### set
set(index: number, element: T): T
Replaces an entry at the specified position in this container with a given entry.
**Parameters**
...
...
en/application-dev/reference/apis/js-apis-plainarray.md
浏览文件 @
623100fa
...
...
@@ -416,7 +416,7 @@ plainArray.clear();
### 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.
...
...
@@ -431,8 +431,8 @@ callbackfn
| Name| Type | Mandatory| Description|
| -------- | -------- | -------- | -------- |
| value | T | Yes| Value of the entry that is currently traversed.|
|
key
| number | Yes| Key of the entry that is currently traversed.|
| plainArray | PlainArray
<
number
,
T
>
| No| Instance that invokes the
**forEach**
API.|
|
index
| number | Yes| Key of the entry that is currently traversed.|
| plainArray | PlainArray
<T>
| No| Instance that invokes the
**forEach**
API.|
**Example**
...
...
en/application-dev/reference/apis/js-apis-vector.md
浏览文件 @
623100fa
...
...
@@ -569,6 +569,7 @@ let result = vector.toSting();
### copyToArray
copyToArray(array: Array
<
T
>
): void
Copies entries in this container into an array to overwrite elements of the same position indexes.
**Parameters**
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录