aboutsummaryrefslogtreecommitdiff
path: root/files/zh-tw/web/javascript/reference/operators/optional_chaining
diff options
context:
space:
mode:
Diffstat (limited to 'files/zh-tw/web/javascript/reference/operators/optional_chaining')
-rw-r--r--files/zh-tw/web/javascript/reference/operators/optional_chaining/index.html4
1 files changed, 2 insertions, 2 deletions
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 715161eca9..7326405696 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
@@ -61,8 +61,8 @@ let nestedProp = ((temp === null || temp === undefined) ? undefined : temp.secon
<pre class="brush: js">let result = someInterface.customMethod?.();</pre>
-<div class="blockIndicator note">
-<p><strong>注意:</strong> 假如物件有同樣的屬性名稱,而不是一個方法,使用 <code>?.</code> 將會抛出 {{JSxRef("TypeError")}} 錯誤(<code>x.y</code><code> 不是一個函數</code>.</p>
+<div class="notecard note">
+<p><strong>備註:</strong>假如物件有同樣的屬性名稱,而不是一個方法,使用 <code>?.</code> 將會抛出 {{JSxRef("TypeError")}} 錯誤(<code>x.y</code><code> 不是一個函數</code>.</p>
</div>
<h4 id="處理回呼函式或事件處理器">處理回呼函式或事件處理器</h4>