From f678e280dfa1fb34ffde9967a06e2b9c61341b04 Mon Sep 17 00:00:00 2001 From: cheeslide <175485195+cheeslide@users.noreply.github.com> Date: Thu, 23 Jan 2025 23:59:51 +0800 Subject: [PATCH] Update index.md --- .../reference/global_objects/set/index.md | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/files/zh-cn/web/javascript/reference/global_objects/set/index.md b/files/zh-cn/web/javascript/reference/global_objects/set/index.md index d2d87e6ec393e2..6d0c43422745c2 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/set/index.md +++ b/files/zh-cn/web/javascript/reference/global_objects/set/index.md @@ -59,7 +59,7 @@ l10n: (AB)(BA)(A\setminus B)\cup(B\setminus A) - 一个维恩图,其中两个圆重叠。A和B的对称差集(symmetric)是包含任一圆但不包含两个圆的区域。 + 一个维恩图,其中两个圆重叠。A 和 B 的对称差集(symmetric)是包含任一圆但不包含两个圆的区域。 {{jsxref("Set/union", "A.union(B)")}} @@ -67,7 +67,7 @@ l10n: ABA\cup B - 一个维恩图,其中两个圆重叠。A和B的并集(union)是包含任一圆或两个圆的区域。 + 一个维恩图,其中两个圆重叠。A 和 B 的并集(union)是包含任一圆或两个圆的区域。 {{jsxref("Set/isDisjointFrom", "A.isDisjointFrom(B)")}} @@ -75,7 +75,7 @@ l10n: AB=A\cap B = \empty - 一个维恩图,其中有两个圆。A和B是互不相交的(disjoint),因为圆没有重叠区域。 + 一个维恩图,其中有两个圆。A 和 B 是互不相交的(disjoint),因为圆没有重叠区域。 {{jsxref("Set/isSubsetOf", "A.isSubsetOf(B)")}} @@ -83,7 +83,7 @@ l10n: ABA\subseteq B - 一个维恩图,其中有两个圆。A是B的子集(subset),因为A完全包含在B中。 + 一个维恩图,其中有两个圆。A 是 B 的子集(subset),因为A完全包含在B中。 {{jsxref("Set/isSupersetOf", "A.isSupersetOf(B)")}} @@ -91,7 +91,7 @@ l10n: ABA\supseteq B - 一个维恩图,其中两个圆。A是B的超集(superset),因为B完全包含在A中。 + 一个维恩图,其中两个圆。A 是 B 的超集(superset),因为B完全包含在A中。 @@ -255,19 +255,16 @@ for (const item of mySet1) { console.log(item); } // 1、"some text"、{ "a": 1, "b": 2 }、{ "a": 1, "b": 2 }、5 -// 1, "some text", { "a": 1, "b": 2 }, { "a": 1, "b": 2 }, 5 for (const item of mySet1.keys()) { console.log(item); } // 1、"some text"、{ "a": 1, "b": 2 }、{ "a": 1, "b": 2 }、5 -// 1, "some text", { "a": 1, "b": 2 }, { "a": 1, "b": 2 }, 5 for (const item of mySet1.values()) { console.log(item); } // 1、"some text"、{ "a": 1, "b": 2 }、{ "a": 1, "b": 2 }、5 -// 1, "some text", { "a": 1, "b": 2 }, { "a": 1, "b": 2 }, 5 // 键和值是相同的 for (const [key, value] of mySet1.entries()) {