l_bus
v1.0.2
Published
Communication between sibling components
Downloads
3
Readme
轻量化的bus.js,解决组件间通信的问题
- 安装
npm i l_bus -S
- 使用说明
const bus=require('l_bus').Event;
bus.on('send',callback)
//订阅
bus.emit('send',arguments)
//发布
bus.remove('send',callback)
//移除订阅的事件