From 00c4351c9b832a53113787ef79b2acbb19d35426 Mon Sep 17 00:00:00 2001 From: wangyong Date: Fri, 11 Feb 2022 17:24:50 +0800 Subject: [PATCH] midified containers class API interface reference description Description The import method of container classes has been changed to improve efficiency. Previous import method: import { ArrayList } from '@ohos.util.ArrayList' Now import method: import ArrayList from '@ohos.util.ArrayList' Related issue #I4TCSR:midified containers class API interface reference description Signed-off-by: wangyong --- zh-cn/application-dev/reference/apis/js-apis-arraylist.md | 2 +- zh-cn/application-dev/reference/apis/js-apis-deque.md | 4 ++-- zh-cn/application-dev/reference/apis/js-apis-hashmap.md | 2 +- zh-cn/application-dev/reference/apis/js-apis-hashset.md | 3 +-- .../application-dev/reference/apis/js-apis-lightweightmap.md | 2 +- .../application-dev/reference/apis/js-apis-lightweightset.md | 2 +- zh-cn/application-dev/reference/apis/js-apis-linkedlist.md | 2 +- zh-cn/application-dev/reference/apis/js-apis-list.md | 2 +- zh-cn/application-dev/reference/apis/js-apis-plainarray.md | 2 +- zh-cn/application-dev/reference/apis/js-apis-queue.md | 2 +- zh-cn/application-dev/reference/apis/js-apis-stack.md | 2 +- zh-cn/application-dev/reference/apis/js-apis-treemap.md | 2 +- zh-cn/application-dev/reference/apis/js-apis-treeset.md | 2 +- zh-cn/application-dev/reference/apis/js-apis-vector.md | 2 +- 14 files changed, 15 insertions(+), 16 deletions(-) diff --git a/zh-cn/application-dev/reference/apis/js-apis-arraylist.md b/zh-cn/application-dev/reference/apis/js-apis-arraylist.md index cecb7b7b0cb..059e706a5ed 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-arraylist.md +++ b/zh-cn/application-dev/reference/apis/js-apis-arraylist.md @@ -6,7 +6,7 @@ ## 导入模块 ``` -import {ArrayList} from '@ohos.util.ArrayList' +import ArrayList from '@ohos.util.ArrayList' ``` ## 权限 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 8a845a02e8a..6ef3ab95b54 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-deque.md +++ b/zh-cn/application-dev/reference/apis/js-apis-deque.md @@ -7,7 +7,7 @@ ## 导入模块 ``` -import {Deque} from '@ohos.util.Deque' +import Deque from '@ohos.util.Deque' ``` ## 权限 @@ -30,7 +30,7 @@ Deque的构造函数。 - 示例: ``` - let queue = new Queue(); + let deque = new Deque(); ``` ### insertFront 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 bb8b631ed02..751642a8acf 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-hashmap.md +++ b/zh-cn/application-dev/reference/apis/js-apis-hashmap.md @@ -7,7 +7,7 @@ ## 导入模块 ``` -import {HashMap} from '@ohos.util.HashMap' +import HashMap from '@ohos.util.HashMap' ``` 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 cf0a8fcfc2e..3589c8fdb1e 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-hashset.md +++ b/zh-cn/application-dev/reference/apis/js-apis-hashset.md @@ -7,10 +7,9 @@ ## 导入模块 ``` -import {HashSet} from '@ohos.util.HashSet' +import HashSet from '@ohos.util.HashSet'; ``` - ## 权限 无 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 81af9fe3a0b..b05217f58a5 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-lightweightmap.md +++ b/zh-cn/application-dev/reference/apis/js-apis-lightweightmap.md @@ -7,7 +7,7 @@ ## 导入模块 ``` -import {LightWeightMap} from '@ohos.util.LightWeightMap' +import LightWeightMap from '@ohos.util.LightWeightMap' ``` diff --git a/zh-cn/application-dev/reference/apis/js-apis-lightweightset.md b/zh-cn/application-dev/reference/apis/js-apis-lightweightset.md index 8f31ac5037d..353250ebdcb 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-lightweightset.md +++ b/zh-cn/application-dev/reference/apis/js-apis-lightweightset.md @@ -7,7 +7,7 @@ ## 导入模块 ``` -import {LightWeightSet} from '@ohos.util.LightWeightSet' +import LightWeightSet from '@ohos.util.LightWeightSet' ``` 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 8c8cd37ffd6..385391288e4 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-linkedlist.md +++ b/zh-cn/application-dev/reference/apis/js-apis-linkedlist.md @@ -7,7 +7,7 @@ ## 导入模块 ``` -import {LinkedList} from '@ohos.util.LinkedList' +import LinkedList from '@ohos.util.LinkedList' ``` 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 03a5b0e01e1..bef7e6b9b43 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-list.md +++ b/zh-cn/application-dev/reference/apis/js-apis-list.md @@ -7,7 +7,7 @@ ## 导入模块 ``` -import {List} from '@ohos.util.List' +import List from '@ohos.util.List' ``` diff --git a/zh-cn/application-dev/reference/apis/js-apis-plainarray.md b/zh-cn/application-dev/reference/apis/js-apis-plainarray.md index 0c56ffe5dac..f8657b795f7 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-plainarray.md +++ b/zh-cn/application-dev/reference/apis/js-apis-plainarray.md @@ -7,7 +7,7 @@ ## 导入模块 ``` -import {PlainArray} from '@ohos.util.PlainArray' +import PlainArray from '@ohos.util.PlainArray' ``` diff --git a/zh-cn/application-dev/reference/apis/js-apis-queue.md b/zh-cn/application-dev/reference/apis/js-apis-queue.md index cef46e3686c..30eb24a15f2 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-queue.md +++ b/zh-cn/application-dev/reference/apis/js-apis-queue.md @@ -7,7 +7,7 @@ ## 导入模块 ``` -import {Queue} from '@ohos.util.Queue' +import Queue from '@ohos.util.Queue' ``` diff --git a/zh-cn/application-dev/reference/apis/js-apis-stack.md b/zh-cn/application-dev/reference/apis/js-apis-stack.md index a9250af7295..c20b9196cd2 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-stack.md +++ b/zh-cn/application-dev/reference/apis/js-apis-stack.md @@ -7,7 +7,7 @@ ## 导入模块 ``` -import {Stack} from '@ohos.util.Stack' +import Stack from '@ohos.util.Stack' ``` 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 c5c7abe34f9..56fd01993c7 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-treemap.md +++ b/zh-cn/application-dev/reference/apis/js-apis-treemap.md @@ -7,7 +7,7 @@ ## 导入模块 ``` -import {TreeMap} from '@ohos.util.TreeMap' +import TreeMap from '@ohos.util.TreeMap' ``` 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 30f1a22033d..10cbd68738d 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-treeset.md +++ b/zh-cn/application-dev/reference/apis/js-apis-treeset.md @@ -7,7 +7,7 @@ ## 导入模块 ``` -import {TreeSet} from '@ohos.util.TreeSet' +import TreeSet from '@ohos.util.TreeSet' ``` 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 4453db94cb7..e0548b7cd3d 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-vector.md +++ b/zh-cn/application-dev/reference/apis/js-apis-vector.md @@ -7,7 +7,7 @@ ## 导入模块 ``` -import {Vector} from '@ohos.util.Vector' +import Vector from '@ohos.util.Vector' ``` -- Gitee