vue bus全局事件中心简单Demo详解 1.vue-cli搭建好项目之后,使用npm安装vue-bus npminstallvue-bus2.在入口文件main.js中全局注册imp bus全局事件