Skip to content

Commit

Permalink
fix envent source
Browse files Browse the repository at this point in the history
  • Loading branch information
何文林 authored and YuChengKai committed Aug 20, 2018
1 parent c4268a9 commit 360a2af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Browser/browser-ch.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@

事件触发有三个阶段

- `document` 往事件触发处传播,遇到注册的捕获事件会触发
- `window` 往事件触发处传播,遇到注册的捕获事件会触发
- 传播到事件触发处时触发注册的事件
- 从事件触发处往 `document` 传播,遇到注册的冒泡事件会触发
- 从事件触发处往 `window` 传播,遇到注册的冒泡事件会触发

事件触发一般来说会按照上面的顺序进行,但是也有特例,如果给一个目标节点同时注册冒泡和捕获事件,事件触发会按照注册的顺序执行。

Expand Down

0 comments on commit 360a2af

Please sign in to comment.