llshyy-tools
v1.0.0
Published
提供了格式化时间,html excape的功能
Downloads
2
Readme
安装
npm install llshyy-tools
导入
const llshyy=require('llshyy-tools')
格式化时间
//对事件进行格式化处理
const dtStr=llshyy.dateFormat(new Date())
转义html中的特殊字符
const htmlStr = '<h1 title="abc">这是h1标签<span>123 </span></h1>'
const str=llshyy.htmlEsc(htmlStr)
const nStr=llshyy.htmlUnEscape(htmlStr)
开源协议
ISC