diff options
author | Tanner Dolby <tannercdolby@gmail.com> | 2022-02-22 01:49:36 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-22 17:49:36 +0800 |
commit | 6e9fe98036090a37cc6247b873845505e5b512fb (patch) | |
tree | 5fc00117ddfd9f448eb9e8011b5bd7f6d8000e8d /files/zh-tw/web/javascript | |
parent | 70c3e11f3335e7701325f125fd712c84d6c1f9bf (diff) | |
download | translated-content-6e9fe98036090a37cc6247b873845505e5b512fb.tar.gz translated-content-6e9fe98036090a37cc6247b873845505e5b512fb.tar.bz2 translated-content-6e9fe98036090a37cc6247b873845505e5b512fb.zip |
Removes empty <div> or <p> elements from pages (#3093)
* Removes all empty paragraph elements
* Removes all empty div elements
* Preserve empty div in code snippet
* Preserve empty elements inside code snippets
* Remove fr files which were converted into markdown
* Web/CSS/transform-function/scaleX()/index.html
The file is already renamed to index.md。
* remove not needed file
* Resolve remaining conflict
Co-authored-by: julieng <julien.gattelier@gmail.com>
Co-authored-by: Masahiro FUJIMOTO <mfujimot@gmail.com>
Diffstat (limited to 'files/zh-tw/web/javascript')
4 files changed, 5 insertions, 5 deletions
diff --git a/files/zh-tw/web/javascript/reference/classes/static/index.html b/files/zh-tw/web/javascript/reference/classes/static/index.html index de1ab29004..0e3eee7293 100644 --- a/files/zh-tw/web/javascript/reference/classes/static/index.html +++ b/files/zh-tw/web/javascript/reference/classes/static/index.html @@ -7,7 +7,7 @@ translation_of: Web/JavaScript/Reference/Classes/static <div>使用關鍵字 <strong>static </strong>來定義一個靜態的方法(method)給類別(class),靜態方法在由類別所建立的物件實體(instance)上不能被呼叫,取而代之的是,靜態方法只能由類別本身呼叫。他們通常作為工具函式(utility functions)使用。像是建立物件或複製物件的函式。</div> -<div></div> + <h2 id="語法">語法</h2> diff --git a/files/zh-tw/web/javascript/reference/global_objects/regexp/index.html b/files/zh-tw/web/javascript/reference/global_objects/regexp/index.html index 7bf77316e2..987e5fd95b 100644 --- a/files/zh-tw/web/javascript/reference/global_objects/regexp/index.html +++ b/files/zh-tw/web/javascript/reference/global_objects/regexp/index.html @@ -5,7 +5,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/RegExp --- <div>{{JSRef}}</div> -<div></div> + <p><strong><code>RegExp</code></strong> 物件被用來比對符合自訂規則的文字。</p> 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 7326405696..c9326cffd8 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 @@ -11,7 +11,7 @@ translation_of: Web/JavaScript/Reference/Operators/Optional_chaining --- <div>{{JSSidebar("Operators")}}</div> -<div></div> + <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> @@ -19,7 +19,7 @@ translation_of: Web/JavaScript/Reference/Operators/Optional_chaining <div>{{EmbedInteractiveExample("pages/js/expressions-optionalchainingoperator.html", "taller")}}</div> -<div></div> + 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 98aef7edf2..81a0940863 100644 --- a/files/zh-tw/web/javascript/reference/statements/switch/index.html +++ b/files/zh-tw/web/javascript/reference/statements/switch/index.html @@ -9,7 +9,7 @@ translation_of: Web/JavaScript/Reference/Statements/switch <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> + <p>{{EmbedInteractiveExample("pages/js/statement-switch.html")}} </p> |