Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Docs
提交
af495c61
D
Docs
项目概览
OpenHarmony
/
Docs
接近 2 年 前同步成功
通知
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看板
未验证
提交
af495c61
编写于
3月 19, 2022
作者:
O
openharmony_ci
提交者:
Gitee
3月 19, 2022
浏览文件
操作
浏览文件
下载
差异文件
!2182 Align the docs document with the d.ts document
Merge pull request !2182 from wangyong/sevendocs
上级
e97fc035
95667d90
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
14 addition
and
24 deletion
+14
-24
zh-cn/application-dev/reference/apis/js-apis-deque.md
zh-cn/application-dev/reference/apis/js-apis-deque.md
+0
-1
zh-cn/application-dev/reference/apis/js-apis-hashmap.md
zh-cn/application-dev/reference/apis/js-apis-hashmap.md
+1
-1
zh-cn/application-dev/reference/apis/js-apis-hashset.md
zh-cn/application-dev/reference/apis/js-apis-hashset.md
+1
-1
zh-cn/application-dev/reference/apis/js-apis-lightweightmap.md
.../application-dev/reference/apis/js-apis-lightweightmap.md
+3
-3
zh-cn/application-dev/reference/apis/js-apis-lightweightset.md
.../application-dev/reference/apis/js-apis-lightweightset.md
+1
-1
zh-cn/application-dev/reference/apis/js-apis-linkedlist.md
zh-cn/application-dev/reference/apis/js-apis-linkedlist.md
+2
-8
zh-cn/application-dev/reference/apis/js-apis-list.md
zh-cn/application-dev/reference/apis/js-apis-list.md
+2
-6
zh-cn/application-dev/reference/apis/js-apis-plainarray.md
zh-cn/application-dev/reference/apis/js-apis-plainarray.md
+3
-3
zh-cn/application-dev/reference/apis/js-apis-vector.md
zh-cn/application-dev/reference/apis/js-apis-vector.md
+1
-0
未找到文件。
zh-cn/application-dev/reference/apis/js-apis-deque.md
浏览文件 @
af495c61
...
...
@@ -154,7 +154,6 @@ deque.insertEnd(4);
deque.insertFront(5);
deque.insertFront(2);
deque.insertFront(4);
deque.popLast();
let result = deque.popLast();
```
...
...
zh-cn/application-dev/reference/apis/js-apis-hashmap.md
浏览文件 @
af495c61
...
...
@@ -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
通过回调函数来遍历HashMap实例对象上的元素以及元素对应的下标。
...
...
zh-cn/application-dev/reference/apis/js-apis-hashset.md
浏览文件 @
af495c61
...
...
@@ -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
通过回调函数来遍历实例对象上的元素以及元素对应的下标。
...
...
zh-cn/application-dev/reference/apis/js-apis-lightweightmap.md
浏览文件 @
af495c61
...
...
@@ -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
通过回调函数来遍历实例对象上的元素以及元素对应的下标。
...
...
@@ -569,7 +569,7 @@ while(temp != undefined) {
### toString
toString():
s
tring
toString():
S
tring
将此映射中包含的键值对拼接成字符串,并返回字符串类型。
...
...
@@ -577,7 +577,7 @@ toString(): string
| 类型 | 说明 |
| -------- | -------- |
|
s
tring | 返回一个字符串。 |
|
S
tring | 返回一个字符串。 |
**示例:**
...
...
zh-cn/application-dev/reference/apis/js-apis-lightweightset.md
浏览文件 @
af495c61
...
...
@@ -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
通过回调函数来遍历LightWeightSet实例对象上的元素以及元素对应的下标。
...
...
zh-cn/application-dev/reference/apis/js-apis-linkedlist.md
浏览文件 @
af495c61
...
...
@@ -27,16 +27,10 @@ SystemCapability.Utils.Lang
### constructor
constructor(
head?: NodeObj
<
T
>
, tail?: NodeObj
<
T
>
)
constructor()
LinkedList的构造函数。
**参数:**
| 参数名 | 类型 | 可读 | 可写 | 说明 |
| -------- | -------- | -------- | -------- | -------- |
| head | NodeObj
<
T
>
| 是 | 否 | 节点对象,含有element、next指向和prev指向。 |
| tail | NodeObj
<
T
>
| 是 | 否 | 节点对象,含有element、next指向和prev指向。 |
**示例:**
...
...
@@ -300,7 +294,7 @@ let result = linkedList.removeFirst();
### removeLast
removeLst(): T
removeL
a
st(): T
删除并返回LinkedList的最后一个元素。
...
...
zh-cn/application-dev/reference/apis/js-apis-list.md
浏览文件 @
af495c61
...
...
@@ -27,15 +27,10 @@ SystemCapability.Utils.Lang
### constructor
constructor(
head?: NodeObj
<
T
>
)
constructor()
List的构造函数。
**参数:**
| 参数名 | 类型 | 可读 | 说明 |
| -------- | -------- | -------- | -------- |
| head | NodeObj
<
T
>
| 是 | 节点对象,含有element、next指向。 |
**示例:**
...
...
@@ -465,6 +460,7 @@ list.clear();
### set
set(index: number, element: T): T
将此 List 中指定位置的元素替换为指定元素。
**参数:**
...
...
zh-cn/application-dev/reference/apis/js-apis-plainarray.md
浏览文件 @
af495c61
...
...
@@ -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
通过回调函数来遍历实例对象上的元素以及元素对应的下标。
...
...
@@ -431,8 +431,8 @@ callbackfn的参数说明:
| 参数名 | 类型 | 必填 | 说明 |
| -------- | -------- | -------- | -------- |
| value | T | 是 | 当前遍历到的元素键值对的值。 |
|
key
| number | 是 | 当前遍历到的元素键值对的键。 |
| plainArray | PlainArray
<
number
,
T
>
| 否 | 当前调用forEach方法的实例对象。 |
|
index
| number | 是 | 当前遍历到的元素键值对的键。 |
| plainArray | PlainArray
<T>
| 否 | 当前调用forEach方法的实例对象。 |
**示例:**
...
...
zh-cn/application-dev/reference/apis/js-apis-vector.md
浏览文件 @
af495c61
...
...
@@ -569,6 +569,7 @@ let result = vector.toSting();
### copyToArray
copyToArray(array: Array
<
T
>
): void
将Vector实例中的元素按照下标复制到指定数组。
**参数:**
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录