npm install tools-ywp
const itheima = require('./itheima-tools')
// 调用dateFoemat对时间格式化
const dtStr = itheima.dateFormat(new Date())
console.log(dtStr);
// 带转换的HTML 字符串
const htmlStr = '<h1 style="abc">这是h1<span>1323 </span></h1>'
const str = itheima.htmlEscape(htmlStr)
console.log(str);
const str2 = itheima.htmlUnEscape(str)
console.log(str2);
ISC