cl_tools2.0
v2.0.0
Published
提供格式化时间,HTMLscape相关功能
Downloads
4
Readme
安装
npm install cl_tolls
导入方式
const m = require("./cl_tools/index");
格式化时间
const m = require("./cl_tools/index");
m.dateFormat(new Date());
转译 html
const html = "<h1>哈哈哈 <span>abc4 </span></h1>";
const str = m.htmlEscape(html);
const str1 = m.htmlUnEscape(str);
console.log(str1);
还原 html
const str1 = m.htmlUnEscape(str);
console.log(str1);
开源协议
ISC
终极实用攻略
来找程龙!!!