1.0.0 • Published 2 years ago
itheima-tools-pyy v1.0.0
... npm install itheima-tools-pyy ...
导入
...js const itheima = require('ithema-tools-pyy') ...
格式化时间
...js const dtStr = itheima.dateFormat(new Date());
转义html中的特殊字符
...js //带转义的字符串 const htmlStr = '这是h1标签123 ' const str = itheima.htmlEscape(htmlStr); ....
还原html中的特殊字符
...js const str2 = itheima.htmlunEscape(str) ....
开源协议
"license": "ISC"
1.0.0
2 years ago