说明
- typscript 版本的工具包
安装
npm install nodejs-toolkit
模块
默认模块
// 引入默认工具类 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);