exports与module.export的区别,export与export defaultt的区别
一、util.js
// util.js
const formatTime = date => {
const year = date.getFullYear()
const month = date.getMonth() + 1
const day = date.getDate()
const hour = date.getHours()
const minute = date.getMinutes()
const second = date.getSeconds()
r
原创
2020-10-18 00:18:30 ·
217 阅读 ·
0 评论