未验证 提交 8228a754 编写于 作者: L LiAn 提交者: Gitee

update zh-cn/application-dev/reference/apis/js-apis-lightweightset.md.

Signed-off-by: NLiAn <lian15@huawei.com>
上级 7a0cd24e
...@@ -160,7 +160,7 @@ has(key: T): boolean ...@@ -160,7 +160,7 @@ has(key: T): boolean
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 @@ equal(obj: Object): boolean ...@@ -188,7 +188,7 @@ equal(obj: Object): boolean
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);
``` ```
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册