46

JS事件那些事儿 一次整明白

 5 years ago
source link: https://juejin.im/post/5c092ad36fb9a049bc4c754e
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
DOM 事件流 事件流包括三个阶段。简而言之:事件一开始从文档的根节点流向目标对象(捕获阶段),然后在目标对象上被触发(目标阶段),之后再回溯到文档的根节点(冒泡阶段)。 事件捕获阶段(Capture Phase) 事件的第一个阶段是捕获阶段。事件从文档的根

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK