1.0.0 • Published 2 years ago

format_reverse_restore v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

安装

''' npm install format_reverse_restore '''

导入

'''js const dt=require('./format_reverse_restore') '''

时间格式化

'''js // 将时间格式化的方法 let date = new Date(); const newdate=dt.dateFormat(date) console.log(newdate) '''

html转义

'''js // 将html中的特殊符号<>"&转义 const str = '<"i am jhq&>' const newstr=dt.HTMLReverse(str) console.log(newstr) // 输出结果 <";i am jhq&>

'''

html 还原

''' let newstr=<";i am jhq&> const l=dt.unhtmlReverse(newstr) console.log(l) //输出结果 <"i am jhq&> ''' ###开源协议 isc

1.0.0

2 years ago