aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/javascript/reference/global_objects/array/values/index.html
diff options
context:
space:
mode:
authorIrvin <irvinfly@gmail.com>2022-02-16 02:02:49 +0800
committerIrvin <irvinfly@gmail.com>2022-02-16 02:35:54 +0800
commit01b0e12ba27b5069248fd09235e9a7143915ee30 (patch)
tree0e9edf538dc3fa3331e1dbb79239b58186765f86 /files/zh-cn/web/javascript/reference/global_objects/array/values/index.html
parent6ca84f1794af830ada9736d7289ce29aabb04ca3 (diff)
downloadtranslated-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/array/values/index.html')
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/array/values/index.html12
1 files changed, 6 insertions, 6 deletions
diff --git a/files/zh-cn/web/javascript/reference/global_objects/array/values/index.html b/files/zh-cn/web/javascript/reference/global_objects/array/values/index.html
index 7af8b40436..d8cc03f53f 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/array/values/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/array/values/index.html
@@ -20,7 +20,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Array/values
<h2 id="语法">语法</h2>
-<pre class="syntaxbox notranslate"><var>arr</var>.values()</pre>
+<pre class="syntaxbox"><var>arr</var>.values()</pre>
<h3 id="返回值">返回值</h3>
@@ -30,7 +30,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Array/values
<h3 id="使用_for...of_循环进行迭代">使用 <code>for...of</code> 循环进行迭代</h3>
-<pre class="brush: js notranslate">let arr = ['w', 'y', 'k', 'o', 'p'];
+<pre class="brush: js">let arr = ['w', 'y', 'k', 'o', 'p'];
let eArr = arr.values();
for (let letter of eArr) {
@@ -39,11 +39,11 @@ for (let letter of eArr) {
<p><strong>Array.prototype.values</strong> 是 <strong>Array.prototype[Symbol.iterator] </strong>的默认实现。</p>
-<pre class="notranslate">Array.prototype.values === Array.prototype[Symbol.iterator] // true </pre>
+<pre>Array.prototype.values === Array.prototype[Symbol.iterator] // true </pre>
<h3 id="使用_.next_迭代">使用 <code>.next()</code> 迭代</h3>
-<pre class="notranslate">var arr = ['a', 'b', 'c', 'd', 'e'];
+<pre>var arr = ['a', 'b', 'c', 'd', 'e'];
var iterator = arr.values();
iterator.next(); // Object { value: "a", done: false }
iterator.next().value; // "b"
@@ -59,7 +59,7 @@ iterator.next().value; // undefined</pre>
<p>例子:</p>
-<pre class="notranslate">var arr = ['a', 'b', 'c', 'd', 'e'];
+<pre>var arr = ['a', 'b', 'c', 'd', 'e'];
var iterator = arr.values();
for (let letter of iterator) {
console.log(letter);
@@ -72,7 +72,7 @@ console.log(letter);
<p><strong>值</strong>: 数组迭代器中存储的是原数组的地址,而不是数组元素值。</p>
-<pre class="notranslate">var arr = ['a', 'b', 'c', 'd', 'e'];
+<pre>var arr = ['a', 'b', 'c', 'd', 'e'];
var iterator = arr.values();
console.log(iterator); // Array Iterator { }
iterator.next().value; // "a"