We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
1. props / $emit 2. $children / $parent 3. provide/ inject:provide/ inject 是vue2.2.0新增的api, 简单来说就是父组件中通过provide来提供变量, 然后再子组件中通过inject来注入变量。 4. ref / refs 5. Vuex 6. $attrs与 $listeners 7. localStorage / sessionStorage 8. eventBus
常见使用场景可以分为三类:
The text was updated successfully, but these errors were encountered:
No branches or pull requests
vue 的8中通信方式
1. props / $emit
2. $children / $parent
3. provide/ inject:provide/ inject 是vue2.2.0新增的api, 简单来说就是父组件中通过provide来提供变量, 然后再子组件中通过inject来注入变量。
4. ref / refs
5. Vuex
6. $attrs与 $listeners
7. localStorage / sessionStorage
8. eventBus
总结
常见使用场景可以分为三类:
参考链接
The text was updated successfully, but these errors were encountered: