0.0.3 • Published 5 years ago
zdf-convert v0.0.3
安装
npm install zdf-converrt导入
const convert = require('zdf-convert')格式化时间
const dt = convert.dateFormat('2021-1-1')转义html标签
const str = convert.htmlEscape('<h1>hello</h1>') // <h1>hello</h1>还原转义的html标签
const htmlStr = convert.unHtmlEscape(<h1>hello</h1>) //<h1>hello</h1>开源协议
ISC