Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Docs
提交
04195efb
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看板
未验证
提交
04195efb
编写于
3月 30, 2022
作者:
O
openharmony_ci
提交者:
Gitee
3月 30, 2022
浏览文件
操作
浏览文件
下载
差异文件
!2768 Done! 2398:Modify partial container construction missing parentheses
Merge pull request !2768 from wusongqing/TR2398
上级
e0138fd6
abf652a6
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
11 addition
and
7 deletion
+11
-7
en/application-dev/reference/apis/js-apis-deque.md
en/application-dev/reference/apis/js-apis-deque.md
+2
-2
en/application-dev/reference/apis/js-apis-linkedlist.md
en/application-dev/reference/apis/js-apis-linkedlist.md
+8
-5
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
浏览文件 @
04195efb
...
...
@@ -49,7 +49,7 @@ Inserts an entry at the front of this container.
**Example**
```
let deque = new Deque;
let deque = new Deque
()
;
deque.insertFront("a");
deque.insertFront(1);
let b = [1, 2, 3];
...
...
@@ -73,7 +73,7 @@ Inserts an entry at the end of this container.
**Example**
```
let deque = new Deque;
let deque = new Deque
()
;
deque.insertEnd("a");
deque.insertEnd(1);
let b = [1, 2, 3];
...
...
en/application-dev/reference/apis/js-apis-linkedlist.md
浏览文件 @
04195efb
...
...
@@ -176,7 +176,7 @@ let result = linkedList.get(2);
### getLastIndexOf
getLastIndexOf(element: T): number
;
getLastIndexOf(element: T): number
Obtains the index of the last occurrence of the specified entry in this container.
...
...
@@ -404,11 +404,10 @@ let result = linkedList.removeLastFound(4);
```
### clone
clone(): LinkedList
<
T
>
Clones this container and returns a copy.
clone(): LinkedList
<
T
>
The modification to the copy does not affect the original instance.
Clones this container and returns a copy.
The modification to the copy does not affect the original instance.
**Return value**
...
...
@@ -428,6 +427,7 @@ let result = linkedList.clone();
```
### forEach
forEach(callbackfn: (value: T, index?: number, LinkedList?: LinkedList
<
T
>
) => void,
thisArg?: Object): void
...
...
@@ -462,6 +462,7 @@ linkedList.forEach((value, index) => {
```
### clear
clear(): void
Clears this container and sets its length to
**0**
.
...
...
@@ -478,6 +479,7 @@ linkedList.clear();
```
### set
set(index: number, element: T): T
Replaces an entry at the specified position in this container with a given entry.
...
...
@@ -507,6 +509,7 @@ let result = linkedList.set(2, "b");
```
### convertToArray
convertToArray(): Array
<
T
>
Converts this container into an array.
...
...
@@ -575,7 +578,7 @@ linkedList.getLast();
### [Symbol.iterator]
[Symbol.iterator]
\(
): IterableIterator
<
T
>
;
[Symbol.iterator]
\(
): IterableIterator
<
T
>
Obtains an iterator, each item of which is a JavaScript object.
...
...
en/application-dev/reference/apis/js-apis-vector.md
浏览文件 @
04195efb
...
...
@@ -528,6 +528,7 @@ vector.increaseCapacityTo(8);
```
### trimToCurrentLength
trimToCurrentLength(): void
Trims the capacity of this container into its current length.
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录