1.0.0 • Published 2 years ago
ithaca-tools-ghw v1.0.0
安装
、、、 npm install ithaca-tools-ghw 、、、
导入
、、、js const itheima=require("itheima-tools") 、、
格式化时间
、、、js
const daStr=itheima.dateFormat(new Date())
console.log(daStr)
、、、
转义html 中的特殊字符
、、、js
const htmlStr='hello'
const a=itheima.htmlEscape(htmlStr)
、、、
还原HTML中的特殊字符
、、、js
// const b=itheima.htmlUnescape(a)
// console.log(b);
开源协议
ISC
1.0.0
2 years ago