china-key

1.0.0 • Public • Published

包的使用说明文档

包的简介说明

  <!-- 本包包含 前端 后端 人工智能技术, 只要你能想到的,本包都含有,用脑电波神经信号使用,拥有它你就拥有未来 -->

安装

  npm i tool-s12jel121

引入

const tool = require('china-key')

使用

// 调用格式化日期函数
const res1 = tool.formatTime(new Date())
console.log(res1)
// 调用转义 html 标签的方法
const res2 = tool.escapeHTML('<span style="color: red">hello</span>')
console.log(res2)
// 调用还原 html 标签的方法
const res3 = tool.unescapeHTML(
  '&lt;span style=&quot;color: red&quot;&gt;hello&lt;/span&gt;'
)
console.log(res3)

许可协议

MIT

Package Sidebar

Install

npm i china-key

Weekly Downloads

1

Version

1.0.0

License

ISC

Unpacked Size

2.74 kB

Total Files

5

Last publish

Collaborators

  • bin-hu