1.0.0 • Published 2 years ago
itheima.faiz v1.0.0
安装 、、、 npm install itheima-faiz 、、、
导入 、、、js const itheima = require('itheima-tools') 、、、
格式化时间功能之一 调用dataformat函数 、、、 const s = itheima.dataFormat(new Date()) console.log(s); 、、、
转换html字符 调用htmlEscape函数 、、、 const htmlstr = '这是一个标签123 ' const str1 = itheima.htmlEscape(htmlstr) console.log(str1); 、、、
把html字符转换回来 调用htmlUnEscape函数 、、、 const str2 = itheima.htmlUnEscape(str1) console.log(str2); 、、、
开源协议 、、、 ISC 、、、
1.0.0
2 years ago