1.0.0 • Published 1 year ago
itheima-tools-wjb v1.0.0
安装
npm install itheima-tools
导入
const itheima = require('itheima-tools')
格式化时间
const dtStr = itheima.dataFormat(new Data())
console.log(dataStr)
转义
const str = itheima.htmlEscape('htmlStr')
console.log(str)
还原HTML 中的特殊字符
const str2 = itheima = htmlUnEscape(str)
开源协议
ISC
1.0.0
1 year ago