1.0.0 • Published 2 years ago
itheima-tools-found v1.0.0
安装方式
npm install itheima-tools-found
导入
const itheima = require('itheima-tools-found');
格式化时间
const dtStr = itheima.dataFormat(new Date());
转义html中的特殊字符
const htmlStr = '<h1 title="abc">这是h1标签<span>123 </span></h1>';
htmlEscape();
htmlunEscape();
开源协议ISC
1.0.0
2 years ago