itqgj

1.0.0 • Public • Published

##安装

npm install itqgj

##导入

const itqgj =require('itqgj')

##格式化时间函数使用

<!--调用 dateFormat 对时间进行 行格式化 -->
const newdata = itqgj.dataFormat(new Date())
<!-- 结果   2020-04-0317:20:58 -->
console.log(newdata);

##转义HTML中的特殊字符 ···

const htmlstr = '

这是h1标签123

'

const str = m.htmlEscape(htmlstr)

console.log(str);

···

##还原HTML中的特殊字符 ···

const str1 = m.htmlUnEscape(str)

console.log(str1);

···

##开源协议

ISC

Readme

Keywords

Package Sidebar

Install

npm i itqgj

Weekly Downloads

0

Version

1.0.0

License

ISC

Unpacked Size

3.17 kB

Total Files

6

Last publish

Collaborators

  • itqgj