bleeping
coder
Projects
JavaScript
TypeScript
Python
C++
C#
Go
Fe-interview: [vue] vue组件之间的通信都有哪些?
Created on 11 Jun 2019
·
3
Comments
·
Source:
haizlin/fe-interview
[vue] vue组件之间的通信都有哪些?
vue
Source
Most helpful comment
父子Coms: 1/2/3 ..
兄弟Coms: 4/5
跨级Coms: 4/5/6/7
props
$emit/$on
( $parents/$children ) / $refs
Vuex
Bus
( provide/inject )
( $attrs/$listeners )
All 3 comments
父子Coms: 1/2/3 ..
兄弟Coms: 4/5
跨级Coms: 4/5/6/7
props
$emit/$on
( $parents/$children ) / $refs
Vuex
Bus
( provide/inject )
( $attrs/$listeners )
props
emit
ref
vuex
bus
1.父传子 props
2.子传父 $emit
3.Vuex 状态管理器
4.bus
Was this page helpful?
0
/ 5 -
0
ratings
Related issues
[js] 第44天 深度克隆对象的方法有哪些,并把你认为最好的写出来
haizhilin2013
·
22
Comments
[js] 第24天 如何快速让一个数组乱序,写出来
haizhilin2013
·
25
Comments
[html] 第1天 页面导入样式时,使用link和@import有什么区别?
haizhilin2013
·
53
Comments
[css] 第6天 用css创建一个三角形,并简述原理
haizhilin2013
·
22
Comments
[js] 第29天 写一个获取数组的最大值、最小值的方法
haizhilin2013
·
23
Comments
Most helpful comment