npm install itheima_lyt
const it=require('itheima_lyt')
<!-- 调用dataFormat对时间进行格式化 -->
const dtStr = it.dataFormat(new Date())
console.log(dtStr);
const htmlStr = '<h1 title="abc">这是h1标签<h1>'
const str = it.htmlEscape(htmlStr)
console.log(str)
const str2 = it.htmlUnEscape(str)
console.log(str2);
ISC