itxiaoye-tools
v1.0.0
Published
提供了格式化时间、HTMLEscape相关功能
Downloads
2
Readme
安装
npm insatll itxiaoye-tools
导入
const itxiaoye = require('itxiaoye-tools')
格式化时间
// 调用包中的方法进行时间格式化
const dtStr = itxiaoye.dateFormat(new Date())
// 输出结果: 2023-08-01 15:54:24
console.log(dtStr);
补充:转义字符方法,偷懒了,没有写
开源协议
ISC