##安装 npm i wd-shijian##导入 const wd = require('wd-shijian')##格式化时间 const daStr = wd.dateFormat(new Date());##结果 2021-04-14 15:01:00 console.log(daStr);3 keywords2 dependents1 versionwdshijiandateFormat@everything-registry/sub-chunk-3118@infinitebrahmanuniverse/nolb-wd1.1.04 years ago