diff options
author | t7yang <t7yang@gmail.com> | 2022-01-10 08:38:04 +0800 |
---|---|---|
committer | Irvin <irvinfly@gmail.com> | 2022-02-16 02:35:54 +0800 |
commit | 7c2556fe79c44d7c31108b8c8b048d2b7704a95e (patch) | |
tree | cb64f8749da725612d3dc9cf95943d0fc40add79 /files/zh-tw/web/javascript/reference/statements | |
parent | ba64b95982c1b53696644a033accf800a4e82c09 (diff) | |
download | translated-content-7c2556fe79c44d7c31108b8c8b048d2b7704a95e.tar.gz translated-content-7c2556fe79c44d7c31108b8c8b048d2b7704a95e.tar.bz2 translated-content-7c2556fe79c44d7c31108b8c8b048d2b7704a95e.zip |
remove span tag in zh-TW
Diffstat (limited to 'files/zh-tw/web/javascript/reference/statements')
5 files changed, 9 insertions, 9 deletions
diff --git a/files/zh-tw/web/javascript/reference/statements/block/index.html b/files/zh-tw/web/javascript/reference/statements/block/index.html index 62a09df015..384e3c1223 100644 --- a/files/zh-tw/web/javascript/reference/statements/block/index.html +++ b/files/zh-tw/web/javascript/reference/statements/block/index.html @@ -63,11 +63,11 @@ alert(x); // outputs 2 <p>當使用<code>let</code>或是<code>const</code>進行宣告時,其存取範圍是只有本身定義的區塊中。</p> -<pre class="brush: js line-numbers language-js"><code class="language-js"><span class="keyword token">let</span> x <span class="operator token">=</span> <span class="number token">1</span><span class="punctuation token">;</span> -<span class="punctuation token">{</span> - <span class="keyword token">let</span> x <span class="operator token">=</span> <span class="number token">2</span><span class="punctuation token">;</span> -<span class="punctuation token">}</span> -console<span class="punctuation token">.</span><span class="function token">log</span><span class="punctuation token">(</span>x<span class="punctuation token">)</span><span class="punctuation token">;</span> <span class="comment token">// logs 1</span></code></pre> +<pre class="brush: js line-numbers language-js"><code class="language-js">let x = 1; +{ + let x = 2; +} +console.log(x); // logs 1</code></pre> <h4 id="function"><code>function</code></h4> diff --git a/files/zh-tw/web/javascript/reference/statements/export/index.html b/files/zh-tw/web/javascript/reference/statements/export/index.html index 195d4bed7f..3db47772e3 100644 --- a/files/zh-tw/web/javascript/reference/statements/export/index.html +++ b/files/zh-tw/web/javascript/reference/statements/export/index.html @@ -5,7 +5,7 @@ translation_of: Web/JavaScript/Reference/Statements/export --- <div>{{jsSidebar("Statements")}}</div> -<p><span class="seoSummary">用 <strong>export</strong> 可以指派函式、物件或變數,透過 {{jsxref("Statements/import", "import")}} 宣告給外部檔案引用。</span></p> +<p>用 <strong>export</strong> 可以指派函式、物件或變數,透過 {{jsxref("Statements/import", "import")}} 宣告給外部檔案引用。</p> <p>導出的模塊都會處於{{jsxref("Strict_mode","嚴謹模式")}},無論是否有所宣告。導出宣告無法使用嵌入式腳本(embedded script)。</p> diff --git a/files/zh-tw/web/javascript/reference/statements/import/index.html b/files/zh-tw/web/javascript/reference/statements/import/index.html index 7b3ef2402b..028366c36d 100644 --- a/files/zh-tw/web/javascript/reference/statements/import/index.html +++ b/files/zh-tw/web/javascript/reference/statements/import/index.html @@ -5,7 +5,7 @@ translation_of: Web/JavaScript/Reference/Statements/import --- <div>{{jsSidebar("Statements")}}</div> -<p><span class="seoSummary"><strong>import</strong> 宣告用於引入由另一個模塊所導出的綁定。</span>被引入的模塊,無論是否宣告{{jsxref("Strict_mode","strict mode","嚴謹模式")}},都會處於該模式。<code>import</code> 宣告無法用於嵌入式腳本(embedded scripts)。</p> +<p><strong>import</strong> 宣告用於引入由另一個模塊所導出的綁定。被引入的模塊,無論是否宣告{{jsxref("Strict_mode","strict mode","嚴謹模式")}},都會處於該模式。<code>import</code> 宣告無法用於嵌入式腳本(embedded scripts)。</p> <p>There is also a function-like dynamic <code><strong>import()</strong></code>, which does not require scripts of <code>type="module"</code>.</p> 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 4939b7b95f..fc2614ab7d 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"><span style="background-color: rgba(255, 255, 255, 0.4);">break</span></font> </h3> +<h3 id="在_for_迴圈中使用帶標記的_break">在 <code>for</code> 迴圈中使用帶標記的 <font face="consolas, Liberation Mono, courier, monospace">break</font> </h3> <pre class="brush: js">var i, j; diff --git a/files/zh-tw/web/javascript/reference/statements/switch/index.html b/files/zh-tw/web/javascript/reference/statements/switch/index.html index b182da09b6..98aef7edf2 100644 --- a/files/zh-tw/web/javascript/reference/statements/switch/index.html +++ b/files/zh-tw/web/javascript/reference/statements/switch/index.html @@ -7,7 +7,7 @@ translation_of: Web/JavaScript/Reference/Statements/switch --- <div>{{jsSidebar("Statements")}}</div> -<div><span class="seoSummary"><strong><code>switch</code> 語句</strong> 會比對一個 <a href="/en-US/docs/Web/JavaScript/Guide/Expressions_and_Operators">表達式</a> 裡頭的值是否符合 <code>case</code> 條件,然後執行跟這個條件相關的 <a href="/en-US/docs/Web/JavaScript/Reference/Statements">陳述式</a>, 以及此一符合條件以外,剩下其他條件裡的陳述式。</span></div> +<div><strong><code>switch</code> 語句</strong> 會比對一個 <a href="/en-US/docs/Web/JavaScript/Guide/Expressions_and_Operators">表達式</a> 裡頭的值是否符合 <code>case</code> 條件,然後執行跟這個條件相關的 <a href="/en-US/docs/Web/JavaScript/Reference/Statements">陳述式</a>, 以及此一符合條件以外,剩下其他條件裡的陳述式。</div> <div></div> |