diff options
author | t7yang <t7yang@gmail.com> | 2022-01-10 08:38:05 +0800 |
---|---|---|
committer | Irvin <irvinfly@gmail.com> | 2022-02-16 02:35:54 +0800 |
commit | a2617e517fe48fbd0fc283e05c82e32765a3fb12 (patch) | |
tree | 70e585d4faa5306d2f7dc4428aa72ede4b00b5c4 /files/zh-tw/web/javascript/reference | |
parent | d9e9adb5f80a819fe46349bcf6d1faec734b09cd (diff) | |
download | translated-content-a2617e517fe48fbd0fc283e05c82e32765a3fb12.tar.gz translated-content-a2617e517fe48fbd0fc283e05c82e32765a3fb12.tar.bz2 translated-content-a2617e517fe48fbd0fc283e05c82e32765a3fb12.zip |
remove font tag in zh-TW
Diffstat (limited to 'files/zh-tw/web/javascript/reference')
10 files changed, 13 insertions, 13 deletions
diff --git a/files/zh-tw/web/javascript/reference/functions/rest_parameters/index.html b/files/zh-tw/web/javascript/reference/functions/rest_parameters/index.html index bed96fff03..8508f3d35c 100644 --- a/files/zh-tw/web/javascript/reference/functions/rest_parameters/index.html +++ b/files/zh-tw/web/javascript/reference/functions/rest_parameters/index.html @@ -26,7 +26,7 @@ translation_of: Web/JavaScript/Reference/Functions/rest_parameters <ul> <li>其餘參數是 <code>arguments</code> 物件被傳入到函式的時候,還沒被指定變數名稱的引數。</li> - <li><code>arguments</code> 物件不是一個實際的陣列,而 rest parameter 是陣列的實體,即 <code><a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort" title="Array sort method">sort</a></code>、<code><a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map" title="Array map method">map</a></code><font face="Open Sans, arial, x-locale-body, sans-serif">、</font><code><a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/forEach" title="Array forEach method">forEach</a></code> <font face="Open Sans, arial, x-locale-body, sans-serif">或 </font><code><a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/pop" title="Array pop method">pop</a></code> 可以直接在其餘參數被調用。</li> + <li><code>arguments</code> 物件不是一個實際的陣列,而 rest parameter 是陣列的實體,即 <code><a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort" title="Array sort method">sort</a></code>、<code><a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map" title="Array map method">map</a></code>、<code><a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/forEach" title="Array forEach method">forEach</a></code> 或 <code><a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/pop" title="Array pop method">pop</a></code> 可以直接在其餘參數被調用。</li> <li><code>arguments</code> 物件自身有額外的功能,例如 <code>callee</code> 屬性。</li> </ul> diff --git a/files/zh-tw/web/javascript/reference/global_objects/json/parse/index.html b/files/zh-tw/web/javascript/reference/global_objects/json/parse/index.html index eb821587a5..a33e2310c3 100644 --- a/files/zh-tw/web/javascript/reference/global_objects/json/parse/index.html +++ b/files/zh-tw/web/javascript/reference/global_objects/json/parse/index.html @@ -41,7 +41,7 @@ JSON.parse('null'); // null <h3 id="使用_reviver_參數">使用 <strong><code>reviver</code></strong> 參數</h3> -<p><code><font face="Open Sans, Arial, sans-serif">如果</font>reviver函數有被指定</code>,字串解析後產生出來的值會在函式回傳前經過轉換。 具體來講,解析後的值或是物件屬性會一個接一個地被這個reviver函數過濾(順序是由巢狀架構中最深的到最淺的),而當一個屬性即將被過濾時,該屬性的名稱(字串形態)以及值會被當作參數傳入reviver函數。如果reviver函數回傳了 {{jsxref("undefined")}} (或是沒有回傳值, 例如:函式提早結束),則該屬性會從物件中被刪除;反之如果成功的話,該屬性的值就會被新的回傳值取代。</p> +<p>如果<code>revive</code>r函數有被指定,字串解析後產生出來的值會在函式回傳前經過轉換。 具體來講,解析後的值或是物件屬性會一個接一個地被這個reviver函數過濾(順序是由巢狀架構中最深的到最淺的),而當一個屬性即將被過濾時,該屬性的名稱(字串形態)以及值會被當作參數傳入reviver函數。如果reviver函數回傳了 {{jsxref("undefined")}} (或是沒有回傳值, 例如:函式提早結束),則該屬性會從物件中被刪除;反之如果成功的話,該屬性的值就會被新的回傳值取代。</p> <p>如果reviver只需轉換某些特定的值,請記得將其他不須特別轉換的值以原來的值回傳,否則這些值會從回傳的結果物件中刪除。</p> diff --git a/files/zh-tw/web/javascript/reference/global_objects/number/toexponential/index.html b/files/zh-tw/web/javascript/reference/global_objects/number/toexponential/index.html index 622314ecfb..34ae1e4139 100644 --- a/files/zh-tw/web/javascript/reference/global_objects/number/toexponential/index.html +++ b/files/zh-tw/web/javascript/reference/global_objects/number/toexponential/index.html @@ -30,7 +30,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Number/toExponential <tr> <td><code>fractionDigits</code></td> <td>●</td> - <td><font face="Consolas, Liberation Mono, Courier, monospace">默認盡可能將數字完整顯示</font></td> + <td>默認盡可能將數字完整顯示</td> <td><code>{{jsxref("Number")}}(正整數)</code></td> <td>小數點後的位數。需為 0 至 20 之間。</td> </tr> diff --git a/files/zh-tw/web/javascript/reference/global_objects/object/defineproperty/index.html b/files/zh-tw/web/javascript/reference/global_objects/object/defineproperty/index.html index 292b2dbe8e..f9f6c44d39 100644 --- a/files/zh-tw/web/javascript/reference/global_objects/object/defineproperty/index.html +++ b/files/zh-tw/web/javascript/reference/global_objects/object/defineproperty/index.html @@ -156,7 +156,7 @@ Object.defineProperty(o, 'conflict', { <p>如果該屬性已經存在, <code>Object.defineProperty()</code> 將會根據描述符內的值和物件當前的 configuration 來修改屬性。 如果舊的描述符之 <code>configurable</code> 的特徵為 false (屬性為 “non-configurable”), 那除了 <code>writable</code> 之外的特徵都將無法修改。 在這個情況,也不可能在 data 和 accessor 屬性類型中來回切換。</p> -<p>如果有一個屬性是 non-configurable, 那它的 <code>writable</code> 特徵只能被改變為 <font face="consolas, Liberation Mono, courier, monospace">false</font>.</p> +<p>如果有一個屬性是 non-configurable, 那它的 <code>writable</code> 特徵只能被改變為 <code>false</code>.</p> <p>若嘗試改變 non-configurable property attributes,將會丟出一個 {{jsxref("TypeError")}},除非當前之值與新值相同。</p> diff --git a/files/zh-tw/web/javascript/reference/global_objects/promise/finally/index.html b/files/zh-tw/web/javascript/reference/global_objects/promise/finally/index.html index e739dcdb0f..77adc0c6fa 100644 --- a/files/zh-tw/web/javascript/reference/global_objects/promise/finally/index.html +++ b/files/zh-tw/web/javascript/reference/global_objects/promise/finally/index.html @@ -36,11 +36,11 @@ p.finally(function() { <p><code>finally()</code> 方法非常類似於 <code>.then(onFinally, onFinally)</code> 的呼叫方式,但仍有一些差異:</p> <ul> - <li><font><font>當建立行內的函數時,可以只傳遞一次,從而避免重複宣告或為它宣告變數。</font></font></li> + <li>當建立行內的函數時,可以只傳遞一次,從而避免重複宣告或為它宣告變數。</li> <li><code>finally</code> 的回呼函數並不會接收到任何引數,因其沒有可靠的方式來確認 promise 是被 fulfilled 還是 rejected 。它的使用情境僅適用於當你<em>不關心</em> rejection 的原因或 fulfillment 的值,因此無須提供。範例: <ul> - <li><font><font>與 </font></font><code>Promise.resolve(2).then(() => {}, () => {})</code><font><font>(將被 resolved 為</font></font><code>undefined</code><font><font>)不同,</font></font><code>Promise.resolve(2).finally(() => {})</code><font><font> 將被 resolved 為</font></font><code>2</code><font><font>。</font></font></li> - <li><font><font>同樣的,與 </font></font><code>Promise.reject(3).then(() => {}, () => {})</code><font><font>(將 fulfilled 為</font></font><code>undefined</code><font><font>)不同,</font></font><code>Promise.reject(3).finally(() => {})</code><font><font> 將被 rejected 為</font></font><code>3</code><font><font>。</font></font></li> + <li>與 <code>Promise.resolve(2).then(() => {}, () => {})</code>(將被 resolved 為<code>undefined</code>)不同,<code>Promise.resolve(2).finally(() => {})</code> 將被 resolved 為<code>2</code>。</li> + <li>同樣的,與 <code>Promise.reject(3).then(() => {}, () => {})</code>(將 fulfilled 為<code>undefined</code>)不同,<code>Promise.reject(3).finally(() => {})</code> 將被 rejected 為<code>3</code>。</li> </ul> </li> </ul> diff --git a/files/zh-tw/web/javascript/reference/global_objects/promise/index.html b/files/zh-tw/web/javascript/reference/global_objects/promise/index.html index 78feec28ae..60930d642f 100644 --- a/files/zh-tw/web/javascript/reference/global_objects/promise/index.html +++ b/files/zh-tw/web/javascript/reference/global_objects/promise/index.html @@ -94,7 +94,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Promise <h2 id="建立_Promise">建立 Promise</h2> -<p><code><font face="Open Sans, arial, x-locale-body, sans-serif">一個</font></code> <code>Promise</code> 物件透過 <code>new</code> 及其建構式建立。這個建構式接收一個叫作”執行器函式(executor function)“的引數。此函式接收兩個函式作為引數。第一個函式(<code>resolve)</code>在非同步作業成功完成時,以該作業之結果值被呼叫。第二個函式(<code>reject</code>)在作業失敗時,以失敗訊息,通常是一個 error object,被呼叫。</p> +<p>一個 <code>Promise</code> 物件透過 <code>new</code> 及其建構式建立。這個建構式接收一個叫作”執行器函式(executor function)“的引數。此函式接收兩個函式作為引數。第一個函式(<code>resolve)</code>在非同步作業成功完成時,以該作業之結果值被呼叫。第二個函式(<code>reject</code>)在作業失敗時,以失敗訊息,通常是一個 error object,被呼叫。</p> <pre class="brush: js">const myFirstPromise = new Promise((resolve, reject) => { // 執行一些非同步作業,最終呼叫: diff --git a/files/zh-tw/web/javascript/reference/global_objects/promise/race/index.html b/files/zh-tw/web/javascript/reference/global_objects/promise/race/index.html index 5022ca0ede..b116dffd61 100644 --- a/files/zh-tw/web/javascript/reference/global_objects/promise/race/index.html +++ b/files/zh-tw/web/javascript/reference/global_objects/promise/race/index.html @@ -28,9 +28,9 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Promise/race <h2 id="範例">範例</h2> -<h3 id="Promise.race_的非同步性質"><font face="consolas, Liberation Mono, courier, monospace"><code>Promise.race</code> 的非同步性質</font></h3> +<h3 id="Promise.race_的非同步性質"><code>Promise.race</code> 的非同步性質</h3> -<p><code><font face="Open Sans, arial, x-locale-body, sans-serif">以下例子演示了 </font>Promise.race</code> <code>的非同步性質:</code></p> +<p>以下例子演示了 <code>Promise.race</code> <code>的非同步性質:</code></p> <pre class="brush: js">// we are passing as argument an array of promises that are already resolved, // to trigger Promise.race as soon as possible diff --git a/files/zh-tw/web/javascript/reference/operators/await/index.html b/files/zh-tw/web/javascript/reference/operators/await/index.html index a8bda40412..2b79ef4f9f 100644 --- a/files/zh-tw/web/javascript/reference/operators/await/index.html +++ b/files/zh-tw/web/javascript/reference/operators/await/index.html @@ -18,7 +18,7 @@ translation_of: Web/JavaScript/Reference/Operators/await <dl> <dt><code>expression</code></dt> <dd>等待解析的 {{jsxref("Promise")}} 物件或任何值。</dd> - <dt><font face="Consolas, Liberation Mono, Courier, monospace">rv = 回傳值</font></dt> + <dt><code>rv = 回傳值</code></dt> <dd> <p>回傳 Promise 物件的 resolved 值,或當該值不是 Promise 物件時,回傳該值本身。</p> </dd> diff --git a/files/zh-tw/web/javascript/reference/operators/conditional_operator/index.html b/files/zh-tw/web/javascript/reference/operators/conditional_operator/index.html index c16dc0cff1..cd0ccfa160 100644 --- a/files/zh-tw/web/javascript/reference/operators/conditional_operator/index.html +++ b/files/zh-tw/web/javascript/reference/operators/conditional_operator/index.html @@ -23,7 +23,7 @@ translation_of: Web/JavaScript/Reference/Operators/Conditional_Operator <dt><code><var>exprIfTrue</var></code></dt> <dd>如果 <code><var>condition</var></code> 的值是 <a href="/en-US/docs/Glossary/truthy">truthy</a> (等於或是可轉換為 <code>true</code>) , <code><var>exprIfTrue</var></code> 會被執行</dd> <dt><code><var>exprIfFalse</var></code></dt> - <dd>如果 <code><var>condition</var></code> 的值是 <a href="/en-US/docs/Glossary/falsy">falsy</a> (等於或是可轉換為 <font face="consolas, Liberation Mono, courier, monospace">false</font>) , <code><var>exprIfFalse</var></code> 會被執行</dd> + <dd>如果 <code><var>condition</var></code> 的值是 <a href="/en-US/docs/Glossary/falsy">falsy</a> (等於或是可轉換為 <code>false</code>) , <code><var>exprIfFalse</var></code> 會被執行</dd> </dl> <h2 id="描述">描述</h2> diff --git a/files/zh-tw/web/javascript/reference/statements/label/index.html b/files/zh-tw/web/javascript/reference/statements/label/index.html index fc2614ab7d..b8ba54d920 100644 --- a/files/zh-tw/web/javascript/reference/statements/label/index.html +++ b/files/zh-tw/web/javascript/reference/statements/label/index.html @@ -86,7 +86,7 @@ for (i = 0; i < items.length; i++) { itemsPassed++; }</pre> -<h3 id="在_for_迴圈中使用帶標記的_break">在 <code>for</code> 迴圈中使用帶標記的 <font face="consolas, Liberation Mono, courier, monospace">break</font> </h3> +<h3 id="在_for_迴圈中使用帶標記的_break">在 <code>for</code> 迴圈中使用帶標記的 <code>break</code></h3> <pre class="brush: js">var i, j; |