Vue实现组件间通信
2019-08-29 本文已影响0人
E1FANG
-
父子组件通信
on('xxx',function(){})
-
爷孙组件通信
eventbus
var eventBus = new Vue()
eventBus.on
3.更复杂大型的情况 Vuex
父子组件通信
on('xxx',function(){})
爷孙组件通信
eventbus
var eventBus = new Vue()
eventBus.on
3.更复杂大型的情况 Vuex