下载 npm i xzhnbkls-tools 导入 const xzhnbkls-tools = require('xzhnbkls-tools') 格式化时间 const dataFormat = xzhnbkls.dataFormat(new Date()) console.log(dataFormat) 开源协议 ISC