1.0.0 • Published 2 years ago
wj-first-tools v1.0.0
安装
npm install wj-first-tools
导入
const tool = require('wj-first-tool')
格式化代码
// 调用dateFormat对时间进行格式化
const dtStr = tool.dateFormat(new Date())
转译HTML中的特殊字符
const htmlStr = '<h1>你好</h1>'
const str = tool.htmlEscape(htmlStr)
开源协议
ISC
1.0.0
2 years ago