Skip to content

Commit a43ce20

Browse files
authored
FIX: minor typo error (#889)
1 parent 94a9298 commit a43ce20

File tree

1 file changed

+1
-1
lines changed
  • 2-ui/2-events/01-introduction-browser-events

1 file changed

+1
-1
lines changed

2-ui/2-events/01-introduction-browser-events/article.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ document.addEventListener("DOMContentLoaded", function() {
401401
</script>
402402
```
403403

404-
这里,同一个对象处理两个事件。请注意,我们需要使用 `addEventListener` 来显示设置事件,以指明要监听的事件。这里的 `menu` 对象只监听 `mousedown``mouseup`,而没有任何其他类型的事件。
404+
这里,同一个对象处理两个事件。请注意,我们需要使用 `addEventListener` 来显式设置事件,以指明要监听的事件。这里的 `menu` 对象只监听 `mousedown``mouseup`,而没有任何其他类型的事件。
405405

406406
`handleEvent` 方法不必通过自身完成所有的工作。它可以调用其他特定于事件的方法,例如:
407407

0 commit comments

Comments
 (0)