qilin-utils
v1.0.17
Published
一个轻量级的前端js工具库,专注于javascript,不关心UI
Downloads
47
Readme
安装
npm install qilin-utils
引用
import Qilin from "qilin-utils";
// 或者
const Qilin = require("qilin-utils");
举例
Qilin.Number.formatNumber(number)
// 数字千位格式化
// 对传入的数字进行每隔三位就以,隔开展示,仅对整数有效
Qilin.Element.getNodeWidth(element)
// 获取某个元素的总宽度
// 参数element 可以是元素节点也可以是选择器--不传默认表示整个页面文档
- 更多API使用方法请访问Qilin个人博客