1.0.0 • Published 1 year ago
jwj-time-tool v1.0.0
安装
npm install jwj-time-tool
导入
const dealTime = require('jwj-time-tool')
格式化时间
// 调用 dateFormat 对时间进行格式化
const dtStr = dealTime.dateFormat(new Date())
// 结果 2020-04-03 17:20:58
console.log(dtStr)
1.0.0
1 year ago