##安装
npm install itheima-tools
##导入
const itheima = require("itheima-tools-zjb");
##格式化时间
const dtStr=itheima.dateFormat(new Date())
##转义 HTML 中的字符
const str=itheima.htmlEscape(htmlStr)
##安装
npm install itheima-tools
##导入
const itheima = require("itheima-tools-zjb");
##格式化时间
const dtStr=itheima.dateFormat(new Date())
##转义 HTML 中的字符
const str=itheima.htmlEscape(htmlStr)
npm i itheima-tools-zjb
1
1.0.0
ISC
1.63 kB
5