From 6e9fe98036090a37cc6247b873845505e5b512fb Mon Sep 17 00:00:00 2001 From: Tanner Dolby Date: Tue, 22 Feb 2022 01:49:36 -0800 Subject: Removes empty
or

elements from pages (#3093) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 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 Co-authored-by: Masahiro FUJIMOTO --- files/zh-tw/web/javascript/reference/classes/static/index.html | 2 +- files/zh-tw/web/javascript/reference/global_objects/regexp/index.html | 2 +- .../web/javascript/reference/operators/optional_chaining/index.html | 4 ++-- files/zh-tw/web/javascript/reference/statements/switch/index.html | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) (limited to 'files/zh-tw/web/javascript/reference') 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

使用關鍵字 static 來定義一個靜態的方法(method)給類別(class),靜態方法在由類別所建立的物件實體(instance)上不能被呼叫,取而代之的是,靜態方法只能由類別本身呼叫。他們通常作為工具函式(utility functions)使用。像是建立物件或複製物件的函式。
-
+

語法

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 ---
{{JSRef}}
-
+

RegExp 物件被用來比對符合自訂規則的文字。

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 ---
{{JSSidebar("Operators")}}
-
+

可選串連運算子 ?. 允許進行深層次的物件值存取,而無需透過明確的物件值串連驗證。?. 運算子的操作與 . 屬性存取運算子相似,後者會在參照到 nullish ({{JSxRef("null")}} or {{JSxRef("undefined")}}) 的值時出現錯誤,而前者可選串連則回傳 undefined 。 當需要存取一個函數,而這函數並不存在時,則會回傳 undefined

@@ -19,7 +19,7 @@ translation_of: Web/JavaScript/Reference/Operators/Optional_chaining
{{EmbedInteractiveExample("pages/js/expressions-optionalchainingoperator.html", "taller")}}
-
+ 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
switch 語句 會比對一個 表達式 裡頭的值是否符合 case 條件,然後執行跟這個條件相關的 陳述式, 以及此一符合條件以外,剩下其他條件裡的陳述式。
-
+

{{EmbedInteractiveExample("pages/js/statement-switch.html")}}      

-- cgit v1.2.3-54-g00ecf