1.0.0 • Published 3 years ago
xiaxin-tools v1.0.0
安装
''' npm install xiaxin-tools '''
导入
''' js const xiaxin = require('xiaxin-tools') '''
格式化时间
'''
const newTime = xiaxin.dateFormat();
'''
转义HTML字符串
'''
const newStr =xiaxin.htmlEscape(htmlStr);
'''
还原HTML字符串
'''
const newUnStr = xiaxin.htmlUnEscape(htmlUnStr);
'''
开源协议
ISC
1.0.0
3 years ago