安装npm install gwh-tools导入const gwh = require('gwh-tools')格式化时间// 调用dateFormat 对时间进行格式化 const dtStr = gwh.dateFormat(new Date()) // 结果 2023-07-18 17:50:353 keywords1 dependent1 versiongwhdateFormatescape@everything-registry/sub-chunk-18161.0.010 months ago