aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/javascript/reference/global_objects/array
diff options
context:
space:
mode:
Diffstat (limited to 'files/zh-cn/web/javascript/reference/global_objects/array')
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/array/@@iterator/index.html2
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/array/from/index.html2
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/array/tolocalestring/index.html6
3 files changed, 5 insertions, 5 deletions
diff --git a/files/zh-cn/web/javascript/reference/global_objects/array/@@iterator/index.html b/files/zh-cn/web/javascript/reference/global_objects/array/@@iterator/index.html
index 31fe03d8b1..ee65eecc73 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/array/@@iterator/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/array/@@iterator/index.html
@@ -29,7 +29,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Array/@@iterator
<h2 id="示例">示例</h2>
-<h3 id="使用_for...of_循环进行迭代"><font face="Open Sans, Arial, sans-serif">使用 </font><code>for...of</code> 循环进行迭代</h3>
+<h3 id="使用_for...of_循环进行迭代">使用 <code>for...of</code> 循环进行迭代</h3>
<pre class="brush: js">var arr = ['a', 'b', 'c', 'd', 'e'];
var eArr = arr[Symbol.iterator]();
diff --git a/files/zh-cn/web/javascript/reference/global_objects/array/from/index.html b/files/zh-cn/web/javascript/reference/global_objects/array/from/index.html
index 28e693f567..8cab100d7c 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/array/from/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/array/from/index.html
@@ -49,7 +49,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Array/from
<li><a href="/zh-CN/docs/Web/JavaScript/Guide/iterable">可迭代对象</a>(可以获取对象中的元素,如 Map和 Set 等)</li>
</ul>
-<p><code>Array.from()</code> 方法有一个可选参数 <code>mapFn</code>,让你可以在最后生成的数组上再执行一次 {{jsxref("Array.prototype.map", "map")}} 方法后再返回。也就是说<code> Array.from(obj, mapFn, thisArg) </code>就相当于<code> Array.from(obj).map(mapFn, thisArg),</code> 除非创建的不是可用的中间数组。 这对一些数组的子类<code>,</code>如 <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Typed_arrays">typed arrays</a><font face="Consolas, Liberation Mono, Courier, monospace"> 来说很重要,</font> 因为中间数组的值在调用 map() 时需要是适当的类型。</p>
+<p><code>Array.from()</code> 方法有一个可选参数 <code>mapFn</code>,让你可以在最后生成的数组上再执行一次 {{jsxref("Array.prototype.map", "map")}} 方法后再返回。也就是说<code> Array.from(obj, mapFn, thisArg) </code>就相当于<code> Array.from(obj).map(mapFn, thisArg),</code> 除非创建的不是可用的中间数组。 这对一些数组的子类<code>,</code>如 <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Typed_arrays">typed arrays</a> 来说很重要, 因为中间数组的值在调用 map() 时需要是适当的类型。</p>
<p><code>from()</code> 的 <code>length</code> 属性为 1 ,即 <code>Array.from.length === 1</code>。</p>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/array/tolocalestring/index.html b/files/zh-cn/web/javascript/reference/global_objects/array/tolocalestring/index.html
index 38b9c01c94..729e537627 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/array/tolocalestring/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/array/tolocalestring/index.html
@@ -15,9 +15,9 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Array/toLocaleString
<h2 id="Syntax" name="Syntax">语法</h2>
-<pre class="syntaxbox"><font face="consolas, Liberation Mono, courier, monospace">arr.toLocaleString([locales[,options]]);</font></pre>
+<pre class="syntaxbox"><code>arr.toLocaleString([locales[,options]]);</code></pre>
-<h3 id="参数"><font face="consolas, Liberation Mono, courier, monospace">参数</font></h3>
+<h3 id="参数">参数</h3>
<dl>
<dt><code>locales</code> {{optional_inline}}</dt>
@@ -26,7 +26,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Array/toLocaleString
<dd>一个可配置属性的对象,对于数字 {{jsxref("Number.prototype.toLocaleString()")}},对于日期{{jsxref("Date.prototype.toLocaleString()")}}.</dd>
</dl>
-<h3 id="返回值"><font face="consolas, Liberation Mono, courier, monospace">返回值</font></h3>
+<h3 id="返回值">返回值</h3>
<p>表示数组元素的字符串。</p>