aboutsummaryrefslogtreecommitdiff
path: root/files/zh-tw/web/javascript/reference/operators
diff options
context:
space:
mode:
Diffstat (limited to 'files/zh-tw/web/javascript/reference/operators')
-rw-r--r--files/zh-tw/web/javascript/reference/operators/conditional_operator/index.html4
-rw-r--r--files/zh-tw/web/javascript/reference/operators/optional_chaining/index.html2
-rw-r--r--files/zh-tw/web/javascript/reference/operators/typeof/index.html4
3 files changed, 5 insertions, 5 deletions
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 7391bcbe5d..c16dc0cff1 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
@@ -5,7 +5,7 @@ translation_of: Web/JavaScript/Reference/Operators/Conditional_Operator
---
<div>{{jsSidebar("Operators")}}</div>
-<p><span class="seoSummary"><strong>條件 (三元) 運算子</strong> 是 JavaScript 唯一用到三個運算元的運算子:在一個條件後面會跟著一個問號 (<code>?</code>),如果條件是 <a href="/en-US/docs/Glossary/truthy">truthy</a>,在冒號(<code>:</code>)前的表達式會被執行,如果條件是 <a href="/en-US/docs/Glossary/falsy">falsy</a>,在冒號後面的表達式會被執行,</span>這個運算子常常被用來當作 <a href="/en-US/docs/Web/JavaScript/Reference/Statements/if...else"><code>if</code></a> 的簡潔寫法.</p>
+<p><strong>條件 (三元) 運算子</strong> 是 JavaScript 唯一用到三個運算元的運算子:在一個條件後面會跟著一個問號 (<code>?</code>),如果條件是 <a href="/en-US/docs/Glossary/truthy">truthy</a>,在冒號(<code>:</code>)前的表達式會被執行,如果條件是 <a href="/en-US/docs/Glossary/falsy">falsy</a>,在冒號後面的表達式會被執行,這個運算子常常被用來當作 <a href="/en-US/docs/Web/JavaScript/Reference/Statements/if...else"><code>if</code></a> 的簡潔寫法.</p>
<div>{{EmbedInteractiveExample("pages/js/expressions-conditionaloperators.html")}}</div>
@@ -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"><span style="background-color: rgba(220, 220, 220, 0.5);">false</span></font>) , <code><var>exprIfFalse</var></code>  會被執行</dd>
+ <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>
</dl>
<h2 id="描述">描述</h2>
diff --git a/files/zh-tw/web/javascript/reference/operators/optional_chaining/index.html b/files/zh-tw/web/javascript/reference/operators/optional_chaining/index.html
index 945ec32efc..715161eca9 100644
--- a/files/zh-tw/web/javascript/reference/operators/optional_chaining/index.html
+++ b/files/zh-tw/web/javascript/reference/operators/optional_chaining/index.html
@@ -13,7 +13,7 @@ translation_of: Web/JavaScript/Reference/Operators/Optional_chaining
<div></div>
-<p><strong>可選串連</strong>運算子 <strong><code>?.</code></strong> 允許進行深層次的物件值存取,而無需透過明確的物件值串連驗證。<span class="seoSummary"><code>?.</code> 運算子的操作與 <code>.</code> 屬性存取運算子相似,後者會在參照到 <a href="/zh-TW/docs/Glossary/nullish">nullish</a> ({{JSxRef("null")}} or {{JSxRef("undefined")}}) 的值時出現錯誤,而前者可選串連則回傳 <code>undefined</code> 。</span> 當需要存取一個函數,而這函數並不存在時,則會回傳 <code>undefined</code> 。</p>
+<p><strong>可選串連</strong>運算子 <strong><code>?.</code></strong> 允許進行深層次的物件值存取,而無需透過明確的物件值串連驗證。<code>?.</code> 運算子的操作與 <code>.</code> 屬性存取運算子相似,後者會在參照到 <a href="/zh-TW/docs/Glossary/nullish">nullish</a> ({{JSxRef("null")}} or {{JSxRef("undefined")}}) 的值時出現錯誤,而前者可選串連則回傳 <code>undefined</code> 。 當需要存取一個函數,而這函數並不存在時,則會回傳 <code>undefined</code> 。</p>
<p>當有機會存在參照不存在的時候,可選串連可以提供更簡短的表述式來進行串連性的屬性存取。這有助於在無法保證物件屬性為必要存在的狀況下,進行物件內容的探索。</p>
diff --git a/files/zh-tw/web/javascript/reference/operators/typeof/index.html b/files/zh-tw/web/javascript/reference/operators/typeof/index.html
index d1939e5d4f..585d340255 100644
--- a/files/zh-tw/web/javascript/reference/operators/typeof/index.html
+++ b/files/zh-tw/web/javascript/reference/operators/typeof/index.html
@@ -9,7 +9,7 @@ translation_of: Web/JavaScript/Reference/Operators/typeof
<h2 id="摘要">摘要</h2>
-<p style="line-height: 22px;"><span style="line-height: 1.572;">typeof 運算子會傳回一個字串值, 指出未經運算 (unevaluated) 的運算元所代表的型別。</span></p>
+<p style="line-height: 22px;">typeof 運算子會傳回一個字串值, 指出未經運算 (unevaluated) 的運算元所代表的型別。</p>
<table class="standard-table" style="line-height: 22px;">
<thead>
@@ -37,7 +37,7 @@ translation_of: Web/JavaScript/Reference/Operators/typeof
<h2 id="Parameters" name="Parameters" style="margin: 0px 0px 0.8em; padding: 0px;">參數</h2>
-<div><code style="line-height: inherit; font-size: 14px;"><em>operand</em></code><span style="line-height: inherit;"> 表示式代表傳入的物件或原始型別。</span></div>
+<div><code style="line-height: inherit; font-size: 14px;"><em>operand</em></code> 表示式代表傳入的物件或原始型別。</div>
<h2 id="Description" name="Description">說明</h2>