We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Learn more about funding links in repositories.
Report abuse
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
[vue] 在vue事件中传入$event,使用e.target和e.currentTarget有什么区别?
The text was updated successfully, but these errors were encountered:
事件发生时的元素,事件所绑定的元素
Sorry, something went wrong.
currentTarget 始终是监听事件者,而 target 是事件的真正发出者
currentTarget:事件绑定的元素 target:鼠标触发的元素
event.currentTarget指向事件所绑定的元素,而event.target始终指向事件发生时的元素。
No branches or pull requests
[vue] 在vue事件中传入$event,使用e.target和e.currentTarget有什么区别?
The text was updated successfully, but these errors were encountered: