zjh_itheima
v1.0.0
Published
用来格式化时间的包
Downloads
1
Readme
安装
npm install zjh_itheima
导入
const tools = require('../itheima-tools')
格式化时间
const time = tools.dateFormat(new Date())
//2022-7-6 12:58:52
转义html
const html = ` `
const eshtml = tools.htmlEsplace(html)
还原html
const rehtml = tools.reductionHtml(eshtml)