安装方式 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