gqt-tools

1.0.0 • Public • Published

安装

npm install gqt-tools

导入

const gqttools = require('gqt-tools')

格式化时间

const dtStr = gqttools.dateFormat(new Date())
console.log(dtStr); 

转义HTML中的特殊字符

const htmlstr = '<h1>hello</h1>'
console.log(gqttools.htmlEscape(htmlstr));

开源协议

ISC

作者日志

2024/3/30 为了完成毕业设计的后端,我在这里火急火燎地痛苦的学习Node

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i gqt-tools

      Weekly Downloads

      2

      Version

      1.0.0

      License

      ISC

      Unpacked Size

      2.12 kB

      Total Files

      5

      Last publish

      Collaborators

      • guqiuting