1.0.0 • Published 4 years ago

demo-wu v1.0.0

Weekly downloads
1
License
ISC
Repository
-
Last release
4 years ago

这是个二级标题

先进行将自己的包先导出来,然后在对其尽心介绍
//这里先是调用时间处理函数的方法
const tools = require('demo')


//格式化事件
const data = tools.time(new Date())

//得到的是这个数
// 如 2020-10-21  20:56:03


//格式化html结构的转化
const html = tools.htmlEscape('<h1>文本</h1>')

//得到的就是带有编码的一串文本

//将文本转化为html结构样式
const wenBen = tools.htmlUnEscape('&gt/&lt')

//转化后的就是<>
```js

协议是ISC

1.0.0

4 years ago