Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

浏览器-事件机制-事件触发三阶段 描述有误 #196

Open
SirM2z opened this issue Aug 2, 2019 · 0 comments
Open

浏览器-事件机制-事件触发三阶段 描述有误 #196

SirM2z opened this issue Aug 2, 2019 · 0 comments

Comments

@SirM2z
Copy link

SirM2z commented Aug 2, 2019

原文如下
image

事件触发一直都是按照:捕获-事件源-冒泡,三个阶段在触发。
只不过 捕获事件冒泡事件 均是针对事件源的所有父元素来定义的。
因此,文中在同一个元素上绑定捕获事件与冒泡事件,并触发了这个元素的事件是没有意义的。
表现出来的效果也就是:触发顺序与绑定顺序相同。
但是当在该元素的子元素上触发一个事件,此时,这个元素的触发顺序自然就是先捕获后冒泡。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant