有你在真好 的个人博客
站在巨人肩膀上的意思就是拒绝重复造轮子,分享12个常见的js插件
阅读:2258 添加日期:2021/3/27 23:20:03 原文链接:https://www.toutiao.com/item/6743236851529679363/
站在巨人肩膀上的意思就是拒绝重复造轮子,分享12个常见的js插件

1.copy-to-clipboard (剪贴板)

https://github.com/zenorocha/clipboard.js

2.FileSaver (文件另存为)

https://github.com/eligrey/FileSaver.js

3.excel-js (xlsx转换)

https://github.com/SheetJS/js-xlsx

4.jsPDF (生成pdf)

https://github.com/MrRio/jsPDF

5.fileApi (上传, 支持进度/分段)

https://github.com/mailru/FileAPI

6.swipe(轮播)

https://github.com/nolimits4web/swiper

7.qrcodejs(二维码生成器)

https://github.com/davidshimjs/qrcodejs

8.autosize (textara高度自适应文字)

https://github.com/jackmoore/autosize

9.shake.js (监听手机震动)

https://github.com/alexgibson/shake.js

10.dayjs (时间格式转换)(类似moment)

https://github.com/iamkun/dayjs

11.axios (代替jq的$ajax, 纯js实现, 无依赖)

https://github.com/axios/axios

12.progressbar (进度条)

https://github.com/kimmobrunfeldt/progressbar.js

ICP备案号:苏ICP备14035786号-1 苏公网安备 32050502001014号