vue/typescript 时间格式化
2021-01-27 本文已影响0人
fanyu__
static toString(date: Date): string {
return `${date.getFullYear()}-${date.getMonth() +
1}-${date.getDate()} ${date.getHours()}:${date.getMinutes()}:${date.getSeconds()}`
}
static toString(date: Date): string {
return `${date.getFullYear()}-${date.getMonth() +
1}-${date.getDate()} ${date.getHours()}:${date.getMinutes()}:${date.getSeconds()}`
}