1.0.0 • Published 2 years ago
zjh_itheima v1.0.0
安装
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)
开源协议:ISC
1.0.0
2 years ago