wj-first-tools
v1.0.0
Published
第一个上传的包,提供了格式化时间,HTMLEscape等功能
Downloads
3
Readme
安装
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