diff options
author | t7yang <t7yang@gmail.com> | 2022-01-10 08:38:07 +0800 |
---|---|---|
committer | Irvin <irvinfly@gmail.com> | 2022-02-16 02:35:54 +0800 |
commit | 12a899ab8540bc84f56a0dc6491be80a48499d49 (patch) | |
tree | 45921c6cb67169c837b9bc73b56f469a7c1c24bf /files/zh-tw/web/javascript/guide/expressions_and_operators | |
parent | 563ca0a35e98678e2b7d5f154f31f496851e8d60 (diff) | |
download | translated-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/expressions_and_operators')
-rw-r--r-- | files/zh-tw/web/javascript/guide/expressions_and_operators/index.html | 20 |
1 files changed, 10 insertions, 10 deletions
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> |