1.0.0 • Published 2 years ago
hxw-tools v1.0.0
安装
npm install hxw-tools
导入
const hxw = require('hxw-tools');
格式化时间的使用方法
var time=hxw.date.dateFormat(new Date()); console.log(time);
转义html
var escapeHTML=hxw.escape.htmlEscape('哈哈'); console.log(escapeHTML);
还原html
var escapeUnHTML=hxw.escape.htmlUnEscape(escapeHTML); console.log(escapeUnHTML);
开源协议
ISC
1.0.0
2 years ago