aboutsummaryrefslogtreecommitdiff
path: root/files/zh-tw/web/javascript/guide
diff options
context:
space:
mode:
authort7yang <t7yang@gmail.com>2022-01-10 08:38:07 +0800
committerIrvin <irvinfly@gmail.com>2022-02-16 02:35:54 +0800
commit12a899ab8540bc84f56a0dc6491be80a48499d49 (patch)
tree45921c6cb67169c837b9bc73b56f469a7c1c24bf /files/zh-tw/web/javascript/guide
parent563ca0a35e98678e2b7d5f154f31f496851e8d60 (diff)
downloadtranslated-content-12a899ab8540bc84f56a0dc6491be80a48499d49.tar.gz
translated-content-12a899ab8540bc84f56a0dc6491be80a48499d49.tar.bz2
translated-content-12a899ab8540bc84f56a0dc6491be80a48499d49.zip
remove name attribute for zh-TW
Diffstat (limited to 'files/zh-tw/web/javascript/guide')
-rw-r--r--files/zh-tw/web/javascript/guide/control_flow_and_error_handling/index.html4
-rw-r--r--files/zh-tw/web/javascript/guide/details_of_the_object_model/index.html8
-rw-r--r--files/zh-tw/web/javascript/guide/expressions_and_operators/index.html20
-rw-r--r--files/zh-tw/web/javascript/guide/introduction/index.html12
-rw-r--r--files/zh-tw/web/javascript/guide/regular_expressions/index.html70
-rw-r--r--files/zh-tw/web/javascript/guide/working_with_objects/index.html2
6 files changed, 58 insertions, 58 deletions
diff --git a/files/zh-tw/web/javascript/guide/control_flow_and_error_handling/index.html b/files/zh-tw/web/javascript/guide/control_flow_and_error_handling/index.html
index 8ea2bc14cb..c140d1a991 100644
--- a/files/zh-tw/web/javascript/guide/control_flow_and_error_handling/index.html
+++ b/files/zh-tw/web/javascript/guide/control_flow_and_error_handling/index.html
@@ -274,7 +274,7 @@ catch (e) {
}
</pre>
-<h4 id="The_catch_Block" name="The_catch_Block"><code>catch</code> 區塊</h4>
+<h4 id="The_catch_Block"><code>catch</code> 區塊</h4>
<p>你可以使用 <code>catch</code> 區塊來處理 <code>try</code> 區塊可能丟出的例外。</p>
@@ -359,7 +359,7 @@ try {
// 輸出 -&gt; caught inner "bogus"</pre>
-<h4 id="Nesting_try...catch_Statements" name="Nesting_try...catch_Statements">巢狀 try...catch 陳述式</h4>
+<h4 id="Nesting_try...catch_Statements">巢狀 try...catch 陳述式</h4>
<p>你可以使用一個或多個的 <code>try...catch</code> 陳述式。 假如一個內層的<code>try...catch</code> 陳述式不具有 <code>catch</code> 區塊, 它將必須要有 <code>finally</code> 區塊與及封閉的 <code>try...catch</code> 陳述式來檢測是否有符合的例外。</p>
diff --git a/files/zh-tw/web/javascript/guide/details_of_the_object_model/index.html b/files/zh-tw/web/javascript/guide/details_of_the_object_model/index.html
index ebdf409aba..ae69cc38f4 100644
--- a/files/zh-tw/web/javascript/guide/details_of_the_object_model/index.html
+++ b/files/zh-tw/web/javascript/guide/details_of_the_object_model/index.html
@@ -9,7 +9,7 @@ translation_of: Web/JavaScript/Guide/Details_of_the_Object_Model
<p>本文假設您已經有點 JavaScript 的基礎,並且用 JavaScript 的函數創建過簡單的物件。</p>
-<h2 id="class-based_vs_prototype-based_languages" name="class-based_vs_prototype-based_languages">基於類 (Class-Based) 與 基於原型 (Prototype-Based) 語言的比較</h2>
+<h2 id="class-based_vs_prototype-based_languages">基於類 (Class-Based) 與 基於原型 (Prototype-Based) 語言的比較</h2>
<p>基於類的物件導向語言,比如 Java 和 C++,是建基於兩種概念之上:類和實例。</p>
@@ -239,7 +239,7 @@ public class Engineer extends WorkerBee {
<p>{{ note('術語 <em><em>實例(instance)</em></em>在 基於類的語言中具有特定的技術含義。在這些語言中,實例是指類的個體成員,與類有著根本性的不同。在 JavaScript 中,“實例”並不具有這種技術含義,因為 JavaScript 中不存在類和實例之間的這種差異。然而,在談論 JavaScript 時,“實例”可以非正式地用於表示用特定的建構函數創建的物件。所以,在這個例子中,你可以非正式地 <code>jane</code> 是 <code>Engineer</code> 的一個實例。與之類似,儘管術語<em>父(parent)</em>,<em>子(child)</em>,<em>祖先(ancestor)</em>,和<em>後代(descendant)</em>在 JavaScript 中並沒有正式的含義,您可以非正式地使用這些術語用於指代原型鏈中處於更高層次或者更低層次的物件。') }}</p>
<p><img alt="figure8.3.png" class="default internal" id="figure8.3" src="/@api/deki/files/4403/=figure8.3.png"><br>
- <a name="8.3"><small><strong>圖例 8.3:通過簡單的定義創建物件</strong></small></a></p>
+ <a><small><strong>圖例 8.3:通過簡單的定義創建物件</strong></small></a></p>
<h2 id="物件的屬性">物件的屬性</h2>
@@ -288,12 +288,12 @@ mark.projects = ["navigator"];</pre>
<p><img alt="" class="internal" src="/@api/deki/files/4422/=figure8.4.png" style="height: 519px; width: 833px;"><br>
<small><strong>Figure 8.4: Adding properties</strong></small></p>
-<h2 id="more_flexible_constructors" name="more_flexible_constructors"><a name="更靈活的建構函數">更靈活的建構函數</a></h2>
+<h2 id="more_flexible_constructors"><a>更靈活的建構函數</a></h2>
<p>到目前為止所展現的建構函數不允許在創建新的實例時指定屬性值。正如 Java 一樣,可以為建構函數提供參數以便初始化實例的屬性值。下圖展現其中一種做法。</p>
<p><img alt="" class="internal" src="/@api/deki/files/4423/=figure8.5.png" style="height: 481px; width: 1012px;"><br>
- <a name="8.5"><small><strong>Figure 8.5: Specifying properties in a constructor, take 1</strong></small></a></p>
+ <a><small><strong>Figure 8.5: Specifying properties in a constructor, take 1</strong></small></a></p>
<p>下面的表格中羅列了這些物件在 Java 和 JavaScript 中的定義。</p>
diff --git a/files/zh-tw/web/javascript/guide/expressions_and_operators/index.html b/files/zh-tw/web/javascript/guide/expressions_and_operators/index.html
index 0dcf129b93..df48ec6e8f 100644
--- a/files/zh-tw/web/javascript/guide/expressions_and_operators/index.html
+++ b/files/zh-tw/web/javascript/guide/expressions_and_operators/index.html
@@ -325,7 +325,7 @@ var var2 = 4;
</tbody>
</table>
-<h4 id="Bitwise_Logical_Operators" name="Bitwise_Logical_Operators">位元邏輯運算子</h4>
+<h4 id="Bitwise_Logical_Operators">位元邏輯運算子</h4>
<p>概念上,位元邏輯運算子運作過程如下:</p>
@@ -380,7 +380,7 @@ var var2 = 4;
<p>注意,在使用 位元NOT 運算子時, 所有的32個bit都被進行NOT了,包含最左邊用來描述正負數的位元(two's-complement representation)。</p>
-<h4 id="Bitwise_Shift_Operators" name="Bitwise_Shift_Operators">位元移動運算子</h4>
+<h4 id="Bitwise_Shift_Operators">位元移動運算子</h4>
<p>位元移動運算子需要兩個運算元: 第一個是運算的目標,第二個是要移動的位元數。移動的方向取決於使用的運算子。</p>
@@ -480,7 +480,7 @@ var n2 = !false; // !f 回傳 true
var n3 = !'Cat'; // !t 回傳 false
</pre>
-<h4 id="Short-Circuit_Evaluation" name="Short-Circuit_Evaluation">短路解析</h4>
+<h4 id="Short-Circuit_Evaluation">短路解析</h4>
<p>邏輯運算式是由左向右解析的, 他們會以下列規則嘗試進行 短路解析:</p>
@@ -522,7 +522,7 @@ mystring += '母'; // 得到 "字母" 並賦與給變數 mystring.</pre>
<p>這個陳述句會將 "成人" 賦與給變數 <code>status</code> 假如 <code>age</code> 大於等於18。 否則,會將 "小孩" 賦與給變數 <code>status</code>。</p>
-<h3 id="Comma_operator" name="Comma_operator">逗號運算子</h3>
+<h3 id="Comma_operator">逗號運算子</h3>
<p><a href="/en-US/docs/Web/JavaScript/Reference/Operators/Comma_Operator">逗點運算子</a> (<code>,</code>) 作用是解析兩個運算元並回傳後面那個運算元的值。 這個運算子通常用於for迴圈內部,讓多個變數能在每次迴圈中被更新。</p>
@@ -536,7 +536,7 @@ mystring += '母'; // 得到 "字母" 並賦與給變數 mystring.</pre>
<p>一元運算 是只需要一個運算元的運算。</p>
-<h4 id="delete" name="delete"><code>delete</code></h4>
+<h4 id="delete"><code>delete</code></h4>
<p><code><a href="/en-US/docs/Web/JavaScript/Reference/Operators/delete">delete</a></code> 運算子會刪除物件,物件的性質,或是陣列中指定 index 的物件。 語法是:</p>
@@ -587,7 +587,7 @@ if (3 in trees) {
}
</pre>
-<h4 id="typeof" name="typeof"><code>typeof</code></h4>
+<h4 id="typeof"><code>typeof</code></h4>
<p><a href="/en-US/docs/Web/JavaScript/Reference/Operators/typeof"><code>typeof</code> 運算子</a> 能以下列任一方式使用:</p>
@@ -650,7 +650,7 @@ typeof Option; // 回傳 "function"
typeof String; // 回傳 "function"
</pre>
-<h4 id="void" name="void"><code>void</code></h4>
+<h4 id="void"><code>void</code></h4>
<p><a href="/en-US/docs/Web/JavaScript/Reference/Operators/void"><code>void</code> 運算子 </a>能以下列任一方式使用:</p>
@@ -707,7 +707,7 @@ var mycar = { make: 'Honda', model: 'Accord', year: 1998 };
'model' in mycar; // 回傳 true
</pre>
-<h4 id="instanceof" name="instanceof"><code>instanceof</code></h4>
+<h4 id="instanceof"><code>instanceof</code></h4>
<p><a href="/en-US/docs/Web/JavaScript/Reference/Operators/instanceof"><code>instanceof</code> 運算子</a> 在 指定物件 具有 指定的物件型態 時回傳 true。 語法是:</p>
@@ -834,7 +834,7 @@ if (theDay instanceof Date) {
<p>JavaScript 基本的關鍵字及運算式。</p>
-<h4 id="this" name="this"><code>this</code></h4>
+<h4 id="this"><code>this</code></h4>
<p><a href="/en-US/docs/Web/JavaScript/Reference/Operators/this"><code>this</code> 關鍵字</a> 能取得當前所在物件。 一般而言, <code>this</code> 能取得呼叫處所在的物件。 你可以使用 點 或是 中括號 來取用該物件中的特性:</p>
@@ -901,7 +901,7 @@ var abc = [ 'A', 'B', 'C' ];
<p>左側是指定值的對象。</p>
-<h4 id="new" name="new"><code>new</code></h4>
+<h4 id="new"><code>new</code></h4>
<p>你可以使用 <a href="/en-US/docs/Web/JavaScript/Reference/Operators/new"><code>new</code> 運算子</a> 來建立一個使用者自定義物件或內建物件的實例。 用法如下:</p>
diff --git a/files/zh-tw/web/javascript/guide/introduction/index.html b/files/zh-tw/web/javascript/guide/introduction/index.html
index 20a7650842..ae980e77b0 100644
--- a/files/zh-tw/web/javascript/guide/introduction/index.html
+++ b/files/zh-tw/web/javascript/guide/introduction/index.html
@@ -19,7 +19,7 @@ translation_of: Web/JavaScript/Guide/Introduction
<p> </p>
-<h2 id="What_is_JavaScript.3F" name="What_is_JavaScript.3F">什麼是 JavaScript?</h2>
+<h2 id="What_is_JavaScript.3F">什麼是 JavaScript?</h2>
<p>JavaScript 是個跨平台、物件導向、輕小型的腳本語言。作為獨立語言並不實用,而是為了能簡單嵌入其他產品和應用程式(例如:網頁瀏覽器)而設計。JavaScript 若寄宿在主體環境(Host environment)時,可以與環境中的物件 (Object)相連,並以程式控制這些物件。</p>
@@ -41,7 +41,7 @@ translation_of: Web/JavaScript/Guide/Introduction
<p>Netscape 公司發明了 JavaScript ,而 JavaScript 的第一次使用正是在 Netscape 自家的瀏覽器上。</p>
-<h2 id="JavaScript_and_Java" name="JavaScript_and_Java">JavaScript 與 Java</h2>
+<h2 id="JavaScript_and_Java">JavaScript 與 Java</h2>
<p>JavaScript 與 Java 在某些方面非常相似但本質上卻是不同的。 JavaScript 雖然和 Java 類似,卻沒有 Java 的靜態定型(static typing)及強型態確認(strong type checking)特性。 JavaScript 遵從大部份的 Java 表達式語法、命名傳統和基本的流程控制概念,這特性同時也是為何要將 LiveScript 重新命名為 JavaScript 的原因。</p>
@@ -99,13 +99,13 @@ translation_of: Web/JavaScript/Guide/Introduction
<p>更多關於 JavaScript 和 Java 的差異比較,請參見 <a href="/zh-TW/docs/JavaScript/Guide/Details_of_the_Object_Model" title="JavaScript/Guide/Details of the Object Model">Details of the Object Model</a> 。</p>
-<h2 id="JavaScript_and_the_ECMAScript_Specification" name="JavaScript_and_the_ECMAScript_Specification">JavaScript 與 ECMAScript 規格</h2>
+<h2 id="JavaScript_and_the_ECMAScript_Specification">JavaScript 與 ECMAScript 規格</h2>
<p>Netscape 公司發明了 JavaScript ,而 JavaScript 的第一次應用正是在 Netscape 瀏覽器。然而,Netscape 後來和 <a class="external" href="http://www.ecma-international.org/">Ecma International</a>(一個致力於將資訊及通訊系統標準化的歐洲組織,前身為 ECMA - 歐洲計算機製造商協會)合作,開發一個基於 JavaScript 核心並同時兼具標準化與國際化的程式語言,這個經過標準化的 JavaScript 便稱作 ECMAScript ,和 JavaScript 有著相同的應用方式並支援相關標準。各個公司都可以使用這個開放的標準語言去開發 JavaScript 的專案。ECMAScript 標準記載於 ECMA-262 這個規格中。</p>
<p>ECMA-262 標準同時也經過 <a class="external" href="http://www.iso.ch/">ISO</a>(國際標準化組織)認証,成為 ISO-16262 標準。你可以在 Mozilla 的網站上找到 <a class="external" href="http://www-archive.mozilla.org/js/language/E262-3.pdf" title="http://www-archive.mozilla.org/js/language/E262-3.pdf">PDF版本的ECMA-262</a>,但這板本已過期;你也可以在<a class="external" href="http://www.ecma-international.org/publications/standards/Ecma-262.htm"> Ecma International 的網站</a> 找到這個規格。 ECMAScript 規格中並沒有描述已經被 W3C(全球資訊網協會)標準化的文件物件模型(DOM)。文件物件模型定義了 HTML 文件物件(document objects)和腳本之間運作的方式。</p>
-<h3 id="Relationship_between_JavaScript_Versions_and_ECMAScript_Editions" name="Relationship_between_JavaScript_Versions_and_ECMAScript_Editions">JavaScript 版本與 ECMAScript 版本之間的關係</h3>
+<h3 id="Relationship_between_JavaScript_Versions_and_ECMAScript_Editions">JavaScript 版本與 ECMAScript 版本之間的關係</h3>
<p>ECMAScript 規格(ECMA-262)在 Netscape 和 Ecma International 的密切合作下產生。下表描述了 JavaScript 的版本和 ECMAScript 的版本之間的關係。</p>
@@ -162,13 +162,13 @@ translation_of: Web/JavaScript/Guide/Introduction
<p>JavaScript 不僅相容於 ECMAScript 更提供了額外的特性。</p>
-<h3 id="JavaScript_Documentation_versus_the_ECMAScript_Specification" name="JavaScript_Documentation_versus_the_ECMAScript_Specification">JavaScript 使用說明 v.s ECMAScript 規格</h3>
+<h3 id="JavaScript_Documentation_versus_the_ECMAScript_Specification">JavaScript 使用說明 v.s ECMAScript 規格</h3>
<p>ECMAScript 規格是執行 ECMAScript 所必須的條件,當你想判斷某個 JavaScript 的特性是否在其他 ECMAScript 實作中有被支援時,ECMAScript 規格是非常有用的。如果你打算撰寫 JavaScript 程式碼並在程式碼中使用僅有 ECMAScript 所支援的特性,那你可能需要查閱一下 ECMAScript 規格。</p>
<p>ECMAScript 文件並不是為了幫助腳本程式設計師而撰寫,如果想知道撰寫腳本的相關資訊,請參考 JavaScript 使用說明。</p>
-<h3 id="JavaScript_and_ECMAScript_Terminology" name="JavaScript_and_ECMAScript_Terminology">JavaScript 和 ECMAScript 的專門術語</h3>
+<h3 id="JavaScript_and_ECMAScript_Terminology">JavaScript 和 ECMAScript 的專門術語</h3>
<p>ECMAScript 規格使用的術語和語法對於 JavaScript 的程式設計師來說可能不是那麼的親切。雖然語言的描述在 ECMAScript 中可能會有所不同,但語言本身的性質仍然是不變的。JavaScript 支援所有在 ECMAScript 規格中被描述到的功能。</p>
diff --git a/files/zh-tw/web/javascript/guide/regular_expressions/index.html b/files/zh-tw/web/javascript/guide/regular_expressions/index.html
index f9b4235c2a..2d5983d163 100644
--- a/files/zh-tw/web/javascript/guide/regular_expressions/index.html
+++ b/files/zh-tw/web/javascript/guide/regular_expressions/index.html
@@ -54,7 +54,7 @@ translation_of: Web/JavaScript/Guide/Regular_Expressions
</thead>
<tbody>
<tr>
- <td><a href="#special-backslash" id="special-backslash" name="special-backslash"><code>\</code></a></td>
+ <td><a href="#special-backslash" id="special-backslash"><code>\</code></a></td>
<td>
<p>反斜線放在非特殊符號前面,使非特殊符號不會被逐字譯出,代表特殊作用。<br>
例如:'b' 如果沒有 '\' 在前頭,功能是找出小寫 b;若改為 '\b' 則代表的是邊界功能,block 用意。<br>
@@ -70,7 +70,7 @@ translation_of: Web/JavaScript/Guide/Regular_Expressions
</td>
</tr>
<tr>
- <td><a href="#special-caret" id="special-caret" name="special-caret"><code>^</code></a></td>
+ <td><a href="#special-caret" id="special-caret"><code>^</code></a></td>
<td>
<p>匹配輸入的開頭,如果 multiline flag 被設為 true,則會匹配換行字元後。</p>
@@ -80,7 +80,7 @@ translation_of: Web/JavaScript/Guide/Regular_Expressions
</td>
</tr>
<tr>
- <td><a href="#special-dollar" id="special-dollar" name="special-dollar"><code>$</code></a></td>
+ <td><a href="#special-dollar" id="special-dollar"><code>$</code></a></td>
<td>
<p>匹配輸入的結尾,如果 multiline flag 被設為 true,則會匹配換行字元。</p>
@@ -88,7 +88,7 @@ translation_of: Web/JavaScript/Guide/Regular_Expressions
</td>
</tr>
<tr>
- <td><a href="#special-asterisk" id="special-asterisk" name="special-asterisk"><code>*</code></a></td>
+ <td><a href="#special-asterisk" id="special-asterisk"><code>*</code></a></td>
<td>
<p>匹配前一字元 0 至多次。<br>
<br>
@@ -99,7 +99,7 @@ translation_of: Web/JavaScript/Guide/Regular_Expressions
</td>
</tr>
<tr>
- <td><a href="#special-plus" id="special-plus" name="special-plus"><code>+</code></a></td>
+ <td><a href="#special-plus" id="special-plus"><code>+</code></a></td>
<td>
<p>匹配前一字元 1 至多次,等同於 <code>{1,}</code>。</p>
@@ -107,7 +107,7 @@ translation_of: Web/JavaScript/Guide/Regular_Expressions
</td>
</tr>
<tr>
- <td><a href="#special-questionmark" id="special-questionmark" name="special-questionmark"><code>?</code></a></td>
+ <td><a href="#special-questionmark" id="special-questionmark"><code>?</code></a></td>
<td>
<p>匹配前一字元 0 至 1 次,等同於 <code>{0,1}</code>。</p>
@@ -120,7 +120,7 @@ translation_of: Web/JavaScript/Guide/Regular_Expressions
</td>
</tr>
<tr>
- <td><a href="#special-dot" id="special-dot" name="special-dot"><code>.</code></a></td>
+ <td><a href="#special-dot" id="special-dot"><code>.</code></a></td>
<td>
<p>(小數點)匹配除了換行符號之外的單一字元。</p>
@@ -128,7 +128,7 @@ translation_of: Web/JavaScript/Guide/Regular_Expressions
</td>
</tr>
<tr>
- <td><a href="#special-capturing-parentheses" id="special-capturing-parentheses" name="special-capturing-parentheses"><code>(x)</code></a></td>
+ <td><a href="#special-capturing-parentheses" id="special-capturing-parentheses"><code>(x)</code></a></td>
<td>
<p>Capturing Parentheses</p>
@@ -141,7 +141,7 @@ translation_of: Web/JavaScript/Guide/Regular_Expressions
</td>
</tr>
<tr>
- <td><a href="#special-non-capturing-parentheses" id="special-non-capturing-parentheses" name="special-non-capturing-parentheses"><code>(?:x)</code></a></td>
+ <td><a href="#special-non-capturing-parentheses" id="special-non-capturing-parentheses"><code>(?:x)</code></a></td>
<td>
<p><em>Non-Capturing Parentheses</em></p>
@@ -166,7 +166,7 @@ translation_of: Web/JavaScript/Guide/Regular_Expressions
</td>
</tr>
<tr>
- <td><a href="#special-lookahead" id="special-lookahead" name="special-lookahead"><code>x(?=y)</code></a></td>
+ <td><a href="#special-lookahead" id="special-lookahead"><code>x(?=y)</code></a></td>
<td>
<p>符合'x',且後接的是'y'。'y'為'x'存在的意義。<br>
<br>
@@ -175,7 +175,7 @@ translation_of: Web/JavaScript/Guide/Regular_Expressions
</td>
</tr>
<tr>
- <td><a href="#special-negated-look-ahead" id="special-negated-look-ahead" name="special-negated-look-ahead"><code>x(?!y)</code></a></td>
+ <td><a href="#special-negated-look-ahead" id="special-negated-look-ahead"><code>x(?!y)</code></a></td>
<td>
<p>符合'x',且後接的不是'y'。'y'為否定'x'存在的意義,後面不行前功盡棄(negated lookahead)。<br>
<br>
@@ -187,7 +187,7 @@ translation_of: Web/JavaScript/Guide/Regular_Expressions
</td>
</tr>
<tr>
- <td><a href="#special-or" id="special-or" name="special-or"><code>x|y</code></a></td>
+ <td><a href="#special-or" id="special-or"><code>x|y</code></a></td>
<td>
<p>符合「x」或「y」。</p>
@@ -195,7 +195,7 @@ translation_of: Web/JavaScript/Guide/Regular_Expressions
</td>
</tr>
<tr>
- <td><a href="#special-quantifier" id="special-quantifier" name="special-quantifier"><code>{n}</code></a></td>
+ <td><a href="#special-quantifier" id="special-quantifier"><code>{n}</code></a></td>
<td>
<p>規定符號確切發生的次數,n為正整數</p>
@@ -203,7 +203,7 @@ translation_of: Web/JavaScript/Guide/Regular_Expressions
</td>
</tr>
<tr>
- <td><a href="#special-quantifier-range" id="special-quantifier-range" name="special-quantifier-range"><code>{n,m}</code></a></td>
+ <td><a href="#special-quantifier-range" id="special-quantifier-range"><code>{n,m}</code></a></td>
<td>
<p>搜尋條件:n為至少、m為至多,其n、m皆為正整數。若把m設定為0,則為Invalid regular expression。</p>
@@ -211,13 +211,13 @@ translation_of: Web/JavaScript/Guide/Regular_Expressions
</td>
</tr>
<tr>
- <td><a href="#special-character-set" id="special-character-set" name="special-character-set"><code>[xyz]</code></a></td>
+ <td><a href="#special-character-set" id="special-character-set"><code>[xyz]</code></a></td>
<td>字元的集合。此格式會匹配中括號內所有字元, including <a href="https://developer.mozilla.org/zh-TW/docs/JavaScript/Guide/Values,_variables,_and_literals#Unicode_escape_sequences" title="https://developer.mozilla.org/en-US/docs/JavaScript/Guide/Values,_variables,_and_literals#Unicode_escape_sequences">escape sequences</a>。特殊字元,例如點(<code>.</code>) 和米字號(<code>*</code>),在字元集合中不具特殊意義,所以不需轉換。若要設一個字元範圍的集合,可以使用橫線 <code>"-"</code> ,如下例所示:<br>
<br>
<code>[a-d] </code>等同於 <code>[abcd]。</code>會匹配 "brisket" 的 "b" 、"city" 的 'c' ……等。 而<code>/[a-z.]+/ </code>和 <code>/[\w.]+/</code> 均可匹配字串 "test.i.ng" 。</td>
</tr>
<tr>
- <td><a href="#special-negated-character-set" id="special-negated-character-set" name="special-negated-character-set"><code>[^xyz]</code></a></td>
+ <td><a href="#special-negated-character-set" id="special-negated-character-set"><code>[^xyz]</code></a></td>
<td>
<p>bracket中寫入的字元將被否定,匹配非出現在bracket中的符號。<br>
 可用 '-' 來界定字元的範圍。一般直接表達的符號都可以使用這種方式。</p>
@@ -226,11 +226,11 @@ translation_of: Web/JavaScript/Guide/Regular_Expressions
</td>
</tr>
<tr>
- <td><a href="#special-backspace" id="special-backspace" name="special-backspace"><code>[\b]</code></a></td>
+ <td><a href="#special-backspace" id="special-backspace"><code>[\b]</code></a></td>
<td>吻合倒退字元 (U+0008). (不會跟 \b 混淆)</td>
</tr>
<tr>
- <td><a href="#special-word-boundary" id="special-word-boundary" name="special-word-boundary"><code>\b</code></a></td>
+ <td><a href="#special-word-boundary" id="special-word-boundary"><code>\b</code></a></td>
<td>
<p>吻合文字邊界。A word boundary matches the position where a word character is not followed or preceded by another word-character. Note that a matched word boundary is not included in the match. In other words, the length of a matched word boundary is zero. (Not to be confused with <code>[\b]</code>.)</p>
@@ -244,7 +244,7 @@ translation_of: Web/JavaScript/Guide/Regular_Expressions
</td>
</tr>
<tr>
- <td><a href="#special-non-word-boundary" id="special-non-word-boundary" name="special-non-word-boundary"><code>\B</code></a></td>
+ <td><a href="#special-non-word-boundary" id="special-non-word-boundary"><code>\B</code></a></td>
<td>
<p>吻合非文字邊界。This matches a position where the previous and next character are of the same type: Either both must be words, or both must be non-words. The beginning and end of a string are considered non-words.</p>
@@ -252,7 +252,7 @@ translation_of: Web/JavaScript/Guide/Regular_Expressions
</td>
</tr>
<tr>
- <td><a href="#special-control" id="special-control" name="special-control"><code>\c<em>X</em></code></a></td>
+ <td><a href="#special-control" id="special-control"><code>\c<em>X</em></code></a></td>
<td>
<p>Where <em>X</em> is a character ranging from A to Z. Matches a control character in a string.</p>
@@ -260,7 +260,7 @@ translation_of: Web/JavaScript/Guide/Regular_Expressions
</td>
</tr>
<tr>
- <td><a href="#special-digit" id="special-digit" name="special-digit"><code>\d</code></a></td>
+ <td><a href="#special-digit" id="special-digit"><code>\d</code></a></td>
<td>
<p>吻合數字,寫法等同於 <code>[0-9] 。</code></p>
@@ -268,7 +268,7 @@ translation_of: Web/JavaScript/Guide/Regular_Expressions
</td>
</tr>
<tr>
- <td><a href="#special-non-digit" id="special-non-digit" name="special-non-digit"><code>\D</code></a></td>
+ <td><a href="#special-non-digit" id="special-non-digit"><code>\D</code></a></td>
<td>
<p>吻合非數字,寫法等同於 <code>[^0-9]。</code></p>
@@ -276,19 +276,19 @@ translation_of: Web/JavaScript/Guide/Regular_Expressions
</td>
</tr>
<tr>
- <td><code><a href="#special-form-feed" id="special-form-feed" name="special-form-feed">\f</a></code></td>
+ <td><code><a href="#special-form-feed" id="special-form-feed">\f</a></code></td>
<td>Matches a form feed (U+000C).</td>
</tr>
<tr>
- <td><a href="#special-line-feed" id="special-line-feed" name="special-line-feed"><code>\n</code></a></td>
+ <td><a href="#special-line-feed" id="special-line-feed"><code>\n</code></a></td>
<td>Matches a line feed (U+000A).</td>
</tr>
<tr>
- <td><a href="#special-carriage-return" id="special-carriage-return" name="special-carriage-return"><code>\r</code></a></td>
+ <td><a href="#special-carriage-return" id="special-carriage-return"><code>\r</code></a></td>
<td>Matches a carriage return (U+000D).</td>
</tr>
<tr>
- <td><a href="#special-white-space" id="special-white-space" name="special-white-space"><code>\s</code></a></td>
+ <td><a href="#special-white-space" id="special-white-space"><code>\s</code></a></td>
<td>
<p>Matches a single white space character, including space, tab, form feed, line feed. Equivalent to <code>[ \f\n\r\t\v\u00a0\u1680\u180e\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]</code>.</p>
@@ -296,7 +296,7 @@ translation_of: Web/JavaScript/Guide/Regular_Expressions
</td>
</tr>
<tr>
- <td><a href="#special-non-white-space" id="special-non-white-space" name="special-non-white-space"><code>\S</code></a></td>
+ <td><a href="#special-non-white-space" id="special-non-white-space"><code>\S</code></a></td>
<td>
<p>Matches a single character other than white space. Equivalent to <code>[^ \f\n\r\t\v​\u00a0\​\u1680u180e\u2000​\u2001\u2002​\u2003\u2004​\u2005\u2006​\u2007\u2008​\u2009\u200a​\u2028\u2029​\u202f\u205f​\u3000]</code>.</p>
@@ -304,15 +304,15 @@ translation_of: Web/JavaScript/Guide/Regular_Expressions
</td>
</tr>
<tr>
- <td><a href="#special-tab" id="special-tab" name="special-tab"><code>\t</code></a></td>
+ <td><a href="#special-tab" id="special-tab"><code>\t</code></a></td>
<td>Matches a tab (U+0009).</td>
</tr>
<tr>
- <td><a href="#special-vertical-tab" id="special-vertical-tab" name="special-vertical-tab"><code>\v</code></a></td>
+ <td><a href="#special-vertical-tab" id="special-vertical-tab"><code>\v</code></a></td>
<td>Matches a vertical tab (U+000B).</td>
</tr>
<tr>
- <td><a href="#special-word" id="special-word" name="special-word"><code>\w</code></a></td>
+ <td><a href="#special-word" id="special-word"><code>\w</code></a></td>
<td>
<p>包含數字字母與底線,等同於<code>[A-Za-z0-9_]。</code></p>
@@ -322,7 +322,7 @@ translation_of: Web/JavaScript/Guide/Regular_Expressions
</td>
</tr>
<tr>
- <td><a href="#special-non-word" id="special-non-word" name="special-non-word"><code>\W</code></a></td>
+ <td><a href="#special-non-word" id="special-non-word"><code>\W</code></a></td>
<td>
<p>Matches any non-word character. Equivalent to <code>[^A-Za-z0-9_]</code>.</p>
@@ -330,7 +330,7 @@ translation_of: Web/JavaScript/Guide/Regular_Expressions
</td>
</tr>
<tr>
- <td><a href="#special-backreference" id="special-backreference" name="special-backreference"><code>\<em>n</em></code></a></td>
+ <td><a href="#special-backreference" id="special-backreference"><code>\<em>n</em></code></a></td>
<td>
<p>Where <em>n</em> is a positive integer, a back reference to the last substring matching the <em>n</em> parenthetical in the regular expression (counting left parentheses).</p>
@@ -338,15 +338,15 @@ translation_of: Web/JavaScript/Guide/Regular_Expressions
</td>
</tr>
<tr>
- <td><a href="#special-null" id="special-null" name="special-null"><code>\0</code></a></td>
+ <td><a href="#special-null" id="special-null"><code>\0</code></a></td>
<td>Matches a NULL (U+0000) character. Do not follow this with another digit, because <code>\0&lt;digits&gt;</code> is an octal <a href="https://developer.mozilla.org/en-US/docs/JavaScript/Guide/Values,_variables,_and_literals#Unicode_escape_sequences" title="https://developer.mozilla.org/en-US/docs/JavaScript/Guide/Values,_variables,_and_literals#Unicode_escape_sequences">escape sequence</a>. Instead use <code>\x00</code>.</td>
</tr>
<tr>
- <td><a href="#special-hex-escape" id="special-hex-escape" name="special-hex-escape"><code>\xhh</code></a></td>
+ <td><a href="#special-hex-escape" id="special-hex-escape"><code>\xhh</code></a></td>
<td>Matches the character with the code hh (two hexadecimal digits)</td>
</tr>
<tr>
- <td><a href="#special-unicode-escape" id="special-unicode-escape" name="special-unicode-escape"><code>\uhhhh</code></a></td>
+ <td><a href="#special-unicode-escape" id="special-unicode-escape"><code>\uhhhh</code></a></td>
<td>Matches the character with the code hhhh (four hexadecimal digits).</td>
</tr>
</tbody>
diff --git a/files/zh-tw/web/javascript/guide/working_with_objects/index.html b/files/zh-tw/web/javascript/guide/working_with_objects/index.html
index a2d3674365..ec531a1004 100644
--- a/files/zh-tw/web/javascript/guide/working_with_objects/index.html
+++ b/files/zh-tw/web/javascript/guide/working_with_objects/index.html
@@ -124,7 +124,7 @@ myCar.year = 1969</pre>
<p>JavaScript has a number of predefined objects. In addition, you can create your own objects. You can create an object using an <a href="/en-US/docs/Web/JavaScript/Reference/Operators/Object_initializer">object initializer</a>. Alternatively, you can first create a constructor function and then instantiate an object invoking that function in conjunction with the <code>new</code> operator.</p>
-<h3 id="Using_object_initializers"><a name="Object_initializers">Using object initializers</a></h3>
+<h3 id="Using_object_initializers"><a>Using object initializers</a></h3>
<p>In addition to creating objects using a constructor function, you can create objects using an <a href="/en-US/docs/Web/JavaScript/Reference/Operators/Object_initializer">object initializer</a>. Using object initializers is sometimes referred to as creating objects with literal notation. "Object initializer" is consistent with the terminology used by C++.</p>