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

知道为啥作者要设计$emit的返回值是this吗 #72

Open
MisterChegy opened this issue Dec 22, 2019 · 1 comment
Open

知道为啥作者要设计$emit的返回值是this吗 #72

MisterChegy opened this issue Dec 22, 2019 · 1 comment

Comments

@MisterChegy
Copy link

子组件调用$emit函数,返回值是该组件的this,作者为啥要返回this,别的不行吗

@konglingwen94
Copy link

个人猜测返回this是为了可以链式调用其他API ?

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

2 participants