1.0.0 • Published 2 years ago
airheadovo v1.0.0
安装
npm i airheadovo
导入
const aT = require('airheadovo')
使用-格式化时间
const str = aT.dateFormat(new Date())
console.log(str); // 2022-03-05 11:32:50
使用-转义html
const t = '<h1 style:"color:red;">111</h1>'
console.log(t);
console.log(aT.htmlEscape(t));
console.log(); // <h1 style:"color:red;">111</h1>
开源协议
ISC
1.0.0
2 years ago