1.0.0 • Published 3 years ago
itlxg-tools v1.0.0
安装
npm install itlxg-tools
导入
const itlxg = require('itlxg-tools')
格式化时间
//调用dateFormat对时间进行格式化
const dtStr = itlxg.dateFormat(new Date())
转义html中特殊字符
const str1 = itlxg.htmlEscape('<h1 title="abc">我是 好友</h1>')
还原html中特殊字符
const str2 = itlxg.htmlUnEscape(str1)
开源协议
ISC
1.0.0
3 years ago