1.0.0 • Published 2 years ago
itheima-tools-xiaoxie v1.0.0
安装
npm install itheima-tools-xiaoxie
导入
const name = require ('itheima-tools-xiaoxie')
格式化时间
console.log(itheima.dataFormat(new Date()));
转义html字符
const str = '<h1>232</h1>';
这里输入内容
console.log(itheima.htmlstr(str));
还原html字符
const str = '<h1>232</h1>';
这里输入内容
console.log(itheima.htmlstr1(str));
文件里 有ceshi.js文件 可以在里面进行测试
开源协议
ISC
1.0.0
2 years ago