1.0.15 • Published 3 years ago
xf-tools v1.0.15
工具函数集合
总结了自己工作中一些常用的工具函数,方便使用
安装
npm install xf-tools or yarn add xf-tools
使用
import Tools from 'xf-tools'
默认从Tools下引入默认方法
or
import {xxx} from 'xf-tools' // xxx: 方法名
example
console.log(Tools.formatDate(new Date(1632643437144)), "yyyy-MM-dd");
// 打印格式化后的时间