1.0.0 • Published 2 years ago
inwwt v1.0.0
安装
npm install inwwt
导入
const inwwt =require('inwwt');
格式化时间
<!-- 调用dateFormat 对时间进行格式化 -->
const dtStr=inwwt.dateFormat(new Date());
console.log(dtStr);
转义 HTML中的转义
const hhil = '<h1>这是一个标题</h1>';
const po =inwwt.htmlEscape();
console.log(po);
开源协议
ISC
1.0.0
2 years ago