没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
事件实用程序 用ES6编写的事件工具系统。 安装 npm install event-utils 用法 import EventEmitter from "event-utils" ; const emitter = new EventEmitter ( ) ; // foo on function callback1 ( arg ) { console . log ( "callback1 called" , arg ) ; } function callback2 ( ) { console . log ( "callback2 called" ) ; } function callbackOnce ( ) { console . log ( "callback called once" ) ; } emitter . on ( "foo" , callback1 )
资源推荐
资源详情
资源评论
收起资源包目录
event-utils-main.zip (12个子文件)
event-utils-main
index.html 2KB
.github
workflows
main.yml 428B
.npmignore 100B
test
index.spec.js 4KB
LICENSE.md 1KB
README.md 5KB
.editorconfig 147B
.gitignore 33B
index.js 3KB
CHANGELOG.md 642B
package-lock.json 79KB
package.json 1015B
共 12 条
- 1
资源评论
乘风破浪的海伦
- 粉丝: 28
- 资源: 4546
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功