安装npm install xxk-tool导入const time = require('xxk-tool)格式化时间// 调用 dateFormat 对时间进行格式化 const dtStr = time.dateFormat(new Date()) console.log(dtStr)1 keyword1 dependent1 versionformat@everything-registry/sub-chunk-31921.0.01 year ago