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

[vue] vue中是如何使用event对象的? #420

Open
haizhilin2013 opened this issue Jun 22, 2019 · 5 comments
Open

[vue] vue中是如何使用event对象的? #420

haizhilin2013 opened this issue Jun 22, 2019 · 5 comments
Labels
vue vue

Comments

@haizhilin2013
Copy link
Collaborator

[vue] vue中是如何使用event对象的?

@haizhilin2013 haizhilin2013 added the vue vue label Jun 22, 2019
@wenyejie
Copy link

你说的是, 事件event?

@haizhilin2013
Copy link
Collaborator Author

@wenyejie 事件的event对象

@slmyer
Copy link

slmyer commented Jun 27, 2019

就是事件: @click='handleClick($events)'

@ccllff
Copy link

ccllff commented Jul 4, 2019

原来如此= =

@zejunking
Copy link

@click=“func” 默认第一个参数传入event对象
@click="func(0, $event)" 如果自己需要传入参数和event对象,则需要使用$event来获取event对象并传入func

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

No branches or pull requests

5 participants