You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/guide/components.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -267,7 +267,7 @@ new Vue({
267
267
268
268
### camelCase vs. kebab-case
269
269
270
-
HTML 特性不区分大小写。当使用非字符串模版时,名字形式为 camelCase 的 prop 用作特性时,需要转为 kebab-case(短横线隔开):
270
+
HTML 特性不区分大小写。当使用非字符串模版时,prop的名字形式会从 camelCase 转为 kebab-case(短横线隔开):
271
271
272
272
```js
273
273
Vue.component('child', {
@@ -426,7 +426,7 @@ Vue.component('example', {
426
426
- 使用 `$on(eventName)` 监听事件
427
427
- 使用 `$emit(eventName)` 触发事件
428
428
429
-
<pclass="tip">Note that Vue's event system is separate from the browser's [EventTarget API](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget). Though they work similarly, `$on` and `$emit` are __not__ aliases for `addEventListener` and `dispatchEvent`.</p>
0 commit comments