Skip to content

Commit 7af8174

Browse files
ZhangZhang
Zhang
authored and
Zhang
committed
translate note
1 parent e0b5981 commit 7af8174

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/guide/components.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ Vue.component('example', {
426426
- 使用 `$on(eventName)` 监听事件
427427
- 使用 `$emit(eventName)` 触发事件
428428

429-
<p class="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>
429+
<p class="tip">Vue的事件系统分离自浏览器的[EventTarget API](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget)。尽管它们的运行类似,但是`$on` `$emit` __不是__`addEventListener` `dispatchEvent` 的别名。</p>
430430

431431
另外,父组件可以在使用子组件的地方直接用 `v-on` 来监听子组件触发的事件。
432432

0 commit comments

Comments
 (0)