//获取当前时间
getDate() {
let now = new Date();
let year = now.getFullYear();
let month = now.getMonth();
let date = now.getDate();
month = month + 1;
month = month.toString().padStart(2, "0");
date = date.toString().padStart(2, "0");
const defaultDate = `${year}-${month}-${date}`;
return defaultDate;
},
获取当前时间
最新推荐文章于 2022-10-20 09:56:53 发布