aboutsummaryrefslogtreecommitdiff
path: root/files/zh-tw/web/javascript
diff options
context:
space:
mode:
authorA1lo <yin199909@aliyun.com>2022-03-19 03:51:33 +0800
committerGitHub <noreply@github.com>2022-03-19 03:51:33 +0800
commitefad3dbdb62d1977c01b953a076bf699100b77e9 (patch)
tree1d6821621c5b23c66edf0be9771b23f9312171d3 /files/zh-tw/web/javascript
parent2d67ce927bfd98fe4cd02d11c950b960945638b5 (diff)
downloadtranslated-content-efad3dbdb62d1977c01b953a076bf699100b77e9.tar.gz
translated-content-efad3dbdb62d1977c01b953a076bf699100b77e9.tar.bz2
translated-content-efad3dbdb62d1977c01b953a076bf699100b77e9.zip
replace all `anch` marco in `zh-TW` (#4708)
* fix: resolve some incorrect anchors * fix: resolve some incorrect anchors * fix: resolve some incorrect anchors
Diffstat (limited to 'files/zh-tw/web/javascript')
-rw-r--r--files/zh-tw/web/javascript/guide/grammar_and_types/index.html14
-rw-r--r--files/zh-tw/web/javascript/reference/global_objects/date/index.html2
-rw-r--r--files/zh-tw/web/javascript/reference/global_objects/function/apply/index.html2
3 files changed, 9 insertions, 9 deletions
diff --git a/files/zh-tw/web/javascript/guide/grammar_and_types/index.html b/files/zh-tw/web/javascript/guide/grammar_and_types/index.html
index a5200c39ec..3e1a49c251 100644
--- a/files/zh-tw/web/javascript/guide/grammar_and_types/index.html
+++ b/files/zh-tw/web/javascript/guide/grammar_and_types/index.html
@@ -317,13 +317,13 @@ y = 42 + " is the answer" // "42 is the answer"
<p>您能使用字面值來表示JavaScript中的值。這些是您在腳本中實際提供的固定值,而不是變量。本節描述以下類型的字面值:</p>
<ul>
- <li>{{anch("Array literals")}}</li>
- <li>{{anch("Boolean literals")}}</li>
- <li>{{anch("Floating-point literals")}}</li>
- <li>{{anch("Integers")}}</li>
- <li>{{anch("Object literals")}}</li>
- <li>{{anch("RegExp literals")}}</li>
- <li>{{anch("String literals")}}</li>
+ <li><a href="#陣列字面值_array_literals">Array literals</a></li>
+ <li><a href="#布林字面值_boolean_literals">Boolean literals</a></li>
+ <li><a href="#浮點數字面值_floating-point_literals">Floating-point literals</a></li>
+ <li><a href="#整數字面值_numerical_literals">Integers</a></li>
+ <li><a href="#物件字面值_object_literals">Object literals</a></li>
+ <li><a href="#正規表達式字面值_regexp_literals">RegExp literals</a></li>
+ <li><a href="#字串字面值_string_literals">String literals</a></li>
</ul>
<h3 id="陣列字面值_Array_literals">陣列字面值 (Array literals)</h3>
diff --git a/files/zh-tw/web/javascript/reference/global_objects/date/index.html b/files/zh-tw/web/javascript/reference/global_objects/date/index.html
index 9e7cab6fe9..3185971c44 100644
--- a/files/zh-tw/web/javascript/reference/global_objects/date/index.html
+++ b/files/zh-tw/web/javascript/reference/global_objects/date/index.html
@@ -42,7 +42,7 @@ new Date(<var>year</var>, <var>month</var>[, <var>day</var>[, <var>hour</var>[,
</div>
</dd>
<dt><code>year</code></dt>
- <dd>表示年份的整數。當數值落在 0 到 99 之間,表示 1900 到 1999 之間的年份。參考{{anch("Two_digit_years_map_to_1900_-_1999", "下面的範例")}}.</dd>
+ <dd>表示年份的整數。當數值落在 0 到 99 之間,表示 1900 到 1999 之間的年份。參考<a href="#兩位數的年份對應到_1900_-_1999">下面的範例</a>.</dd>
<dt><code>month</code></dt>
<dd>表示月份的整數。由 0 開始(一月)到 11 (十二月)。</dd>
<dt><code>day</code></dt>
diff --git a/files/zh-tw/web/javascript/reference/global_objects/function/apply/index.html b/files/zh-tw/web/javascript/reference/global_objects/function/apply/index.html
index 03e58de21b..8cb554a069 100644
--- a/files/zh-tw/web/javascript/reference/global_objects/function/apply/index.html
+++ b/files/zh-tw/web/javascript/reference/global_objects/function/apply/index.html
@@ -21,7 +21,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Function/apply
<dt><code>thisArg</code></dt>
<dd>讓 <em><code>fun </code></em><code>呼叫時</code>可以視為 this  的值。注意,這可能並不是最後會在方法裡看見的值:如果這是一個在非 {{jsxref("Strict_mode", "non-strict mode", "", 1)}} 下運作的程式碼,{{jsxref("null")}} 及 {{jsxref("undefined")}} 將會被全域物件取代,而原始類別將被封裝。</dd>
<dt><code>argsArray</code></dt>
- <dd>一個 array-like object ,定義了 <em><code>fun </code></em><code>要呼叫的一組參數,如果沒有需要提供,可以傳入 </code>{{jsxref("null")}} 或 {{jsxref("undefined")}} 。從 ECMAScript 5 開始,這些參數不僅可以是泛型的 array-like object ,而不一定要是一組陣列。查看下方的{{anch("Browser_compatibility", "browser compatibility")}} 資訊。</dd>
+ <dd>一個 array-like object ,定義了 <em><code>fun </code></em><code>要呼叫的一組參數,如果沒有需要提供,可以傳入 </code>{{jsxref("null")}} 或 {{jsxref("undefined")}} 。從 ECMAScript 5 開始,這些參數不僅可以是泛型的 array-like object ,而不一定要是一組陣列。查看下方的<a href="#瀏覽器相容性">瀏覽器相容性</a> 資訊。</dd>
</dl>
<h3 id="回傳值">回傳值</h3>