diff options
author | Irvin <irvinfly@gmail.com> | 2022-02-16 02:02:49 +0800 |
---|---|---|
committer | Irvin <irvinfly@gmail.com> | 2022-02-16 02:35:54 +0800 |
commit | 01b0e12ba27b5069248fd09235e9a7143915ee30 (patch) | |
tree | 0e9edf538dc3fa3331e1dbb79239b58186765f86 /files/zh-cn/web/javascript/reference/global_objects/map | |
parent | 6ca84f1794af830ada9736d7289ce29aabb04ca3 (diff) | |
download | translated-content-01b0e12ba27b5069248fd09235e9a7143915ee30.tar.gz translated-content-01b0e12ba27b5069248fd09235e9a7143915ee30.tar.bz2 translated-content-01b0e12ba27b5069248fd09235e9a7143915ee30.zip |
remove `notranslate` class in zh-CN
Diffstat (limited to 'files/zh-cn/web/javascript/reference/global_objects/map')
-rw-r--r-- | files/zh-cn/web/javascript/reference/global_objects/map/foreach/index.html | 4 | ||||
-rw-r--r-- | files/zh-cn/web/javascript/reference/global_objects/map/keys/index.html | 4 |
2 files changed, 4 insertions, 4 deletions
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 <h2 id="语法">语法</h2> -<pre class="syntaxbox notranslate"><code><var>myMap</var>.forEach(<var>callback([<var>value</var>][,<var>key</var>][,<var>map</var>])[, <var>thisArg</var>])</var></code></pre> +<pre class="syntaxbox"><code><var>myMap</var>.forEach(<var>callback([<var>value</var>][,<var>key</var>][,<var>map</var>])[, <var>thisArg</var>])</var></code></pre> <h3 id="参数">参数</h3> @@ -72,7 +72,7 @@ browser-compat: javascript.builtins.Map.forEach <p>以下的代码在每行中打印一个 <code>Map</code> 对象中的元素</p> -<pre class="brush:js notranslate">function logMapElements(value, key, map) { +<pre class="brush:js">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 <h2 id="语法">语法</h2> -<pre class="syntaxbox notranslate"><code><em>myMap</em>.keys()</code></pre> +<pre class="syntaxbox"><code><em>myMap</em>.keys()</code></pre> <h3 id="返回值">返回值</h3> @@ -32,7 +32,7 @@ browser-compat: javascript.builtins.Map.keys <h3 id="使用_keys">使用 <code>keys()</code></h3> -<pre class="brush:js notranslate">var myMap = new Map(); +<pre class="brush:js">var myMap = new Map(); myMap.set("0", "foo"); myMap.set(1, "bar"); myMap.set({}, "baz"); |