1.0.0 • Published 2 years ago
@hepengcheng/node-tool v1.0.0
说明
- typscript 版本的工具包
安装
npm install node-tool
模块
- 日期模块
// 引入默认工具类
const Tool = require('../src/').default;
// 实例化工具类
const tool = new Tool();
// 通过工具包上的日期对象,获取当前时间
console.log(tool.date.GetDateTime);
- 日志模块
// 引入日期工具类
const Date = require('../src').XHDate;
// 实例化日期工具类
const date = new Date();
// 通过日期对象获取当前时间
console.log(tool.date.GetDateTime);
1.0.0
2 years ago