From 01b0e12ba27b5069248fd09235e9a7143915ee30 Mon Sep 17 00:00:00 2001 From: Irvin Date: Wed, 16 Feb 2022 02:02:49 +0800 Subject: remove `notranslate` class in zh-CN --- .../web/javascript/reference/global_objects/map/foreach/index.html | 4 ++-- .../zh-cn/web/javascript/reference/global_objects/map/keys/index.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'files/zh-cn/web/javascript/reference/global_objects/map') diff --git a/files/zh-cn/web/javascript/reference/global_objects/map/foreach/index.html b/files/zh-cn/web/javascript/reference/global_objects/map/foreach/index.html index 76ef36556e..50b701e541 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/map/foreach/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/map/foreach/index.html @@ -22,7 +22,7 @@ browser-compat: javascript.builtins.Map.forEach

语法

-
myMap.forEach(callback([value][,key][,map])[, thisArg])
+
myMap.forEach(callback([value][,key][,map])[, thisArg])

参数

@@ -72,7 +72,7 @@ browser-compat: javascript.builtins.Map.forEach

以下的代码在每行中打印一个 Map 对象中的元素

-
function logMapElements(value, key, map) {
+
function logMapElements(value, key, map) {
     console.log(`map.get('${key}') = ${value}`)
 }
 new Map([['foo', 3], ['bar', {}], ['baz', undefined]]).forEach(logMapElements)
diff --git a/files/zh-cn/web/javascript/reference/global_objects/map/keys/index.html b/files/zh-cn/web/javascript/reference/global_objects/map/keys/index.html
index 59c1b50654..87758cf8f3 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/map/keys/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/map/keys/index.html
@@ -22,7 +22,7 @@ browser-compat: javascript.builtins.Map.keys
 
 

语法

-
myMap.keys()
+
myMap.keys()

返回值

@@ -32,7 +32,7 @@ browser-compat: javascript.builtins.Map.keys

使用 keys()

-
var myMap = new Map();
+
var myMap = new Map();
 myMap.set("0", "foo");
 myMap.set(1, "bar");
 myMap.set({}, "baz");
-- 
cgit v1.2.3-54-g00ecf