PlainWei Tech Studio

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

推荐一个JavaScript触发器插件js-trigger

js-trigger是一个JavaScript触发器插件,可通过指定频次、指定时间内触发指定的处理函数

https://tanwei-cc.github.io/js-trigger/

 

特性

  • 支持AMD/CMD/CommonJS/ESModule
  • 支持Node
  • 支持Browser
  • 使用场景:限制日志频繁上传、限制ajax频繁调用、错误提醒、网络状态检测等

示例

https://tanwei-cc.github.io/js-trigger/examples/index.html

 

文档 

https://tanwei-cc.github.io/js-trigger/docs/api.html

 

安装

npm install --save tanwei-cc/js-trigger

 

问题反馈

https://github.com/tanwei-cc/js-trigger/issues

 

posted on 2017-09-22 14:56  PlainWei  阅读(621)  评论(1编辑  收藏  举报