1.0.0 • Published 3 years ago
itheima-tools-ljr v1.0.0
安装方式
npm install itheima-tools-ljr导入方式
const it = require('itheima-tools-ljr')格式化时间
// 调用 dateFormat 对时间进行格式化
const dtStr = it.dateFormat(new Date())
console.log(dtStr)转义 HTML 中的特殊字符
const a1 = it.htmlEscape(htmlStr)
console.log(a1)还原 HTML 中的特殊字符
const a2 = it.htmlUnEscape(str)
console.log(a2)开源协议
"license": "ISC"1.0.0
3 years ago