摘要: const eventBus = { install(Vue,options) { Vue.prototype.$bus = vue } }; Vue.use(eventBus); methods: { //分发事件 todo: function () { this.$bus.$emit('todo 阅读全文
posted @ 2017-12-28 23:43 浮生如梦似离殇 阅读(710) 评论(0) 推荐(0) 编辑