dead-simple-event-bus:事件总线的简单实现

时间:2021-05-08 19:18:04
【文件属性】:
文件名称:dead-simple-event-bus:事件总线的简单实现
文件大小:5KB
文件格式:ZIP
更新时间:2021-05-08 19:18:04
JavaScript 可以在浏览器和Node.js中使用的无效的简单事件总线 安装 可通过npm获得 npm install dead-simple-event-bus 公开API 它作为3种方法。 添加() 去掉() 扳机() API可以通过3种方式使用,即 单项活动 多个具有args样式的事件 数组样式的多个事件 浏览器设定 < script type =" text/javascript " src =" node_modules/dead-simple-event-bus/cli.js " > </ script > < script type =" text/javascript " > var ebSingle = new window . EventBus ( ) ; var ebArgsStyle = new window . EventBus ( ) ; var ebArraySty
【文件预览】:
dead-simple-event-bus-master
----.gitignore(574B)
----package.json(649B)
----cli.js(3KB)
----index.js(3KB)
----node_example.js(1KB)
----README.md(2KB)
----index.html(1KB)
----.gitattributes(378B)

网友评论