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] 69.事件绑定与普通事件有什么区别 #238

Open
qiilee opened this issue Sep 30, 2019 · 0 comments
Open

[js] 69.事件绑定与普通事件有什么区别 #238

qiilee opened this issue Sep 30, 2019 · 0 comments
Labels

Comments

@qiilee
Copy link
Member

qiilee commented Sep 30, 2019

答案:

  • 用普通事件添加相同事件,下面会覆盖上面的,而事件绑定不会
  • 普通事件是针对非 dom 元素,事件绑定是针对 dom 元素的事件
@qiilee qiilee added the JS label Sep 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant