aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/javascript/guide/indexed_collections/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/zh-cn/web/javascript/guide/indexed_collections/index.html')
-rw-r--r--files/zh-cn/web/javascript/guide/indexed_collections/index.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/files/zh-cn/web/javascript/guide/indexed_collections/index.html b/files/zh-cn/web/javascript/guide/indexed_collections/index.html
index 5dddf74d46..fae44cbb84 100644
--- a/files/zh-cn/web/javascript/guide/indexed_collections/index.html
+++ b/files/zh-cn/web/javascript/guide/indexed_collections/index.html
@@ -7,9 +7,9 @@ translation_of: Web/JavaScript/Guide/Indexed_collections
<p class="summary">这个章节主要介绍了以索引进行排序的数据集合。包括数组以及类似于数组的数据结构,如<strong style="background-color: #f4f7f8; font-weight: bold;"> {{jsxref("Array")}} </strong>、<strong style="background-color: #f4f7f8; font-weight: bold;">{{jsxref("TypedArray")}} </strong>。</p>
-<h2 id="数组对象Array_object"><font face="Courier, Andale Mono, monospace">数组对象(Array object)</font></h2>
+<h2 id="数组对象Array_object">数组对象(Array object)</h2>
-<p><font face="Courier, Andale Mono, monospace">数组(array)是一个有序的数据集合,我们可以通过数组名称(name)和索引(index)进行访问。例如,我们定义了一个数组emp,数组中的每个元素包含了一个雇员的名字以及其作为索引的员工号。那么emp[1]将会代表1号员工,emp[2]将会代表2号员工,以此类推。</font></p>
+<p>数组(array)是一个有序的数据集合,我们可以通过数组名称(name)和索引(index)进行访问。例如,我们定义了一个数组emp,数组中的每个元素包含了一个雇员的名字以及其作为索引的员工号。那么emp[1]将会代表1号员工,emp[2]将会代表2号员工,以此类推。</p>
<p>JavaScript中没有明确的数组数据类型。但是,我们可以通过使用内置Array对象和它的方法对数组进行操作。Array对象有很多操作数组的方法,比如合并、反转、排序等。数组对象有一个决定数组长度和使用正则表达式操作其他属性的属性。</p>