1.0.2 • Published 2 years ago
event-communication v1.0.2
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', () => {})