1.0.0 • Published 11 months ago
aoweibin-tool v1.0.0
安装
、、、 npm install aoweibin-tool 、、、
导入方式
、、、 const tool = require('aoweibin-tool'); 、、、
格式化时间
、、、 const date = tool.dateFormat(new Date()); console.log(data); 、、、
转义 HTML 中的特殊字符
、、、 let str = 'Hello, Node.js'; console.log(tool.htmlEscape(str)); 、、、
还原 HTML 中的特殊字符
、、、 let str = '<h1>Hello, Node.js</h1>'; console.log(tool.htmlUnEscape(str)); 、、、
开源协议
、、、 ISC 、、、
1.0.0
11 months ago