1.0.0 • Published 3 years ago
ithema-tool-coco v1.0.0
npm install ithema-tool-coco
导入
const ithemaToolCoco = require(ithema-tool-coco)
格式化时间
const dtStr = ithemaToolCoco.dataFormat(new Date());
转义html中的特殊字符
let htmlstr = '<h1 title="abc">这是h1标签<span>123 </span></h1>'
htmlstr = ithemaToolCoco.htmlEscape(htmlstr)
1.0.0
3 years ago