1.1.0 • Published 3 years ago
itheima-tools-zzh v1.1.0
安装
、、、
npm i itheima-tools-zzh
导入
const itheima = require('itheima-tools-zzh')
格式化时间
、、、js
const dtStr = itheima.dateFormat(new Date())
console.log(dtStr);
转义HTNL 字符串
、、、js
const htmlstr = ' 这是h1标签 123 & nbsp;'
const html = itheima.htmlEscape(htmlstr)
console.log(html);
开源协议
ISC