1.0.0 • Published 2 years ago
itheima-tools-jf v1.0.0
Installation
npm install itheima-tools-jf
API
dateFormat(格式化时间)
itheima.dateFormat(date)
date
:一个日期对象- 返回值:返回格式化之后的时间 (2022/09/11 14:42:40)
htmlEscape(转义 HTML 中的特殊字符)
itheima.htmlEscape(htmlStr)
htmlUnEscape(还原 HTML 中的特殊字符)
itheima.htmlUnEscape(str)
开源协议
ISC
1.0.0
2 years ago