aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/javascript/reference/global_objects/array/pop/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/zh-cn/web/javascript/reference/global_objects/array/pop/index.html')
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/array/pop/index.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/files/zh-cn/web/javascript/reference/global_objects/array/pop/index.html b/files/zh-cn/web/javascript/reference/global_objects/array/pop/index.html
index 3e6caa6795..9ee915c4f4 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/array/pop/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/array/pop/index.html
@@ -17,7 +17,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Array/pop
-<h2 id="Syntax" name="Syntax">语法</h2>
+<h2 id="Syntax">语法</h2>
<pre class="syntaxbox"><code><em>arr</em>.pop()</code></pre>
@@ -25,7 +25,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Array/pop
<p>从数组中删除的元素(当数组为空时返回{{jsxref("undefined")}})。</p>
-<h2 id="Description" name="Description">描述</h2>
+<h2 id="Description">描述</h2>
<p><code>pop</code> 方法从一个数组中删除并返回最后一个元素。</p>
@@ -33,9 +33,9 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Array/pop
<p>如果你在一个空数组上调用 pop(),它返回  {{jsxref("undefined")}}。</p>
-<h2 id="Example" name="Example">示例</h2>
+<h2 id="Example">示例</h2>
-<h3 id="Example:_Removing_the_last_element_of_an_array" name="Example:_Removing_the_last_element_of_an_array">例子: 删除掉数组的最后一个元素</h3>
+<h3 id="Example:_Removing_the_last_element_of_an_array">例子: 删除掉数组的最后一个元素</h3>
<p>下面的代码首先创建了一个拥有四个元素的数组 myFish,然后删除掉它的最后一个元素。</p>