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

JS的事件机制 #9

Open
Pieces312 opened this issue Sep 19, 2020 · 0 comments
Open

JS的事件机制 #9

Pieces312 opened this issue Sep 19, 2020 · 0 comments

Comments

@Pieces312
Copy link
Owner

Pieces312 commented Sep 19, 2020

JavaScript是一个事件驱动的语言,也就是它必须等待事件被触发后才会进行相应代码段的执行。而负责处理事件的代码片段被称为事件处理程序(event handle)。
在一般页面中,常见的便是DOM事件,在DOM版本的不断变更中,产生了三个事件:DOM0级事件、DOM2级事件和DOM3级事件。他们分别对应的是:

  • DOM0级事件:on-event事件,window或document事件
  • DOM2级事件:addEventListener绑定的事件
  • DOM3级事件:鼠标、UI、焦点、文本、滚动等事件

事件流:是指网页元素接收事件的顺序,即事件捕获和事件冒泡。

文章链接:https://zhuanlan.zhihu.com/p/73091706

@Pieces312 Pieces312 changed the title CSS3贝塞尔属性了解多少? JS的事件机制 Sep 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant