Super simple to use 引用 import EventCommunication from 'event-communication' window.$eventBus = new EventCommunication() 使用 window.$eventBus.$emit('eventname', 'payload') window.$eventBus.$on('eventname', () => {}) window.$eventBus.$of('eventname', () => {})