1.0.0 • Published 2 years ago
jing-packages v1.0.0
安装方式
npm install jing-packages
导入方式
const itheima = require('jing-packages')
格式化时间
const time = itheima.time(new Date())
console.log(time)
转义 HTML 中的特殊字符
const html = itheima.changehtml(html)
console.log(html)
还原HTML 中的特殊字符
const htmlstr = itheima.returnhtml(htmlstr)
console.log(htmlstr)
开源协议
ISC
1.0.0
2 years ago