diff --git a/files/zh-cn/web/api/web_components/using_custom_elements/index.md b/files/zh-cn/web/api/web_components/using_custom_elements/index.md index ac935387a2449f..2f6e148a0763ab 100644 --- a/files/zh-cn/web/api/web_components/using_custom_elements/index.md +++ b/files/zh-cn/web/api/web_components/using_custom_elements/index.md @@ -157,9 +157,7 @@ class MyCustomElement extends HTMLElement { } attributeChangedCallback(name, oldValue, newValue) { - console.log( - `属性 ${name} 已由 ${oldValue} 变更为 ${newValue}。`, - ); + console.log(`属性 ${name} 已由 ${oldValue} 变更为 ${newValue}。`); } }