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()}`
}
本文标题:vue/typescript 时间格式化
本文链接:https://www.haomeiwen.com/subject/mxyozktx.html
网友评论