1.0.1 • Published 2 years ago
it-tools-xhl2 v1.0.1
安装
npm i it-tools-xhl2
导入
const itheima = require('../it-tools-xhl2');
格式化时间方法
let dt = new Date();
itheima.dateFormat(dt);
转义HTML的特殊字符方法
let str = itheima.htmlEscape('<h1>你好<span>你也好</span> </h1>');
特殊字符转义HTML方法
let str1 = itheima.htmlUnescape(str);
开源协议
ISC
1.0.1
2 years ago