1.0.0 • Published 1 year ago
itheima-tool-dyh v1.0.0
安装
npm install itheima-tool
导入
const itheima = require('./itheima-tool')
格式化时间
const dt = new Date()
const dayFormat = dateFormat(dt)
转义
const htmlstr = '<h1 title="abc">这是h1标签<span>123 </span></h1>'
const html = htmlEscape(htmlstr)
还原
const newHtml = htmlUnEscape(html)
开源协议
ISC
1.0.0
1 year ago