记录一些比较常用的功能实用库
1、处理时间的库
dayjs :Day.js中文网 (fenxianglu.cn)
date-fns : date-fns - modern JavaScript date utility library
moment.js : 首页 | Moment.js 中文文档 (bootcss.com)
luxon : Home (moment.github.io)
2、订阅发布
PubSubJS :GitHub - mroderick/PubSubJS: Dependency free publish/subscribe for JavaScript
mitt:GitHub - developit/mitt:🥊微小的 200 字节功能事件发射器/pubsub。
3、异步执行
async : async - Documentation (caolan.github.io)
4、HTTP 请求
axios :起步 | Axios中文文档 | Axios中文网 (axios-http.cn)
5、文本复制到剪贴板
clipboard.js — Copy to clipboard without Flashclipboard clipboard.js — Copy to clipboard without Flash
6、热力地图
heatmap.js Documentationheatmap.js heatmap.js Documentation
7、前端截图
dom-to-image GitHub - tsayen/dom-to-image: Generates an image from a DOM node using HTML5 canvas
html2canvas :html2canvas - Screenshots with JavaScript (hertzen.com)
GitHub - hongru/canvas2image: a tool for saving or converting canvas as img
8、Interact.js
Interact.js 是一个 JavaScript 库,用于现代浏览器的拖放、调整大小和多点触控手势。它的免费和开源版本带有强大的选项,例如惯性和用于捕捉和限制的修饰符
Introduction | interact.js (interactjs.io)
9、xe-utils
xe-utils,javascript 函数库、工具类,提供一套实用的基础函数、日期转换函数等
xe-utils: 函数库、工具类,提供一套实用的功能函数... (gitee.com)
10、driver.js
Driver.js是一个功能强大且高度可定制的基于原生JavaScript开发的新用户引导库。它没有依赖项,支持所有主要浏览器。高亮你想高亮的地方。
Driver.js中文网 (employleague.cn)
11、Intro.js
一个开源的 javascript / CSS 库,用于添加分步介绍或提示
User Onboarding and Product Walkthrough Library | Intro.js (introjs.com)
GitHub - usablica/intro.js: Lightweight, user-friendly onboarding tour library
12、screenfull
用于跨浏览器使用 JavaScript 全屏 API 的简单包装器,可让您将页面或任何元素转换为全屏
GitHub - sindresorhus/screenfull:用于跨浏览器使用 JavaScript 全屏 API 的简单包装器