1.0.0 • Published 1 year ago
itheima-tools-liyun v1.0.0
安装
npm install itheima-tools-liyun
导入
const itheima = require('itheima-tools-liyun')
格式化时间
const dt = itheima.dataFormat(new Date()) console.log(dt);
转义特殊字符
const htmlStr = '这是h1标签123$nbsp;' const str = itheima.htmlEscape(htmlStr) console.log(str);
开源协议
ISC
1.0.0
1 year ago