目录 注册事件总线 使用 接收 销毁事件总线 注意 全局事件总线(EventBus)适用于任意组件通信,常用于兄弟之间或者是没有关系的组件之间 注册事件总线 main.js //方式一 new Vue({ ··· beforeCreate(){ Vue.prototype.$bus = this }, ··· }) //方式二 new Vue({ ··· beforeCreate(