1.0.0 • Published 1 year ago
huangbye-tools v1.0.0
安装
npm install huangbye-tools
导入
const huangbye = require('huangbye-tools')
格式化时间
// 调用dateFormat 对时间格式化
const dtStr = huangbye.dateFormat(new Date())
// 结果 2022-12-07 21:21:21
console.log(dtStr)
转义html字符串
huangbye.htmlEscape(htmlStr)
开源协议
ISC
1.0.0
1 year ago