特殊格式时间的格式化
1.如果返回的是"2025-08-01T13:45:01“格式
change_time:function (time) {
let date = new Date(time)
return date.getFullYear() + '-' + this.checkTime(date.getMonth() + 1) + '-' + this.checkTime(date.getDate())
},
//补零
checkTime(i) {
if (i < 10) {
i = '0' + i
}
return i
}
浙公网安备 33010602011771号