function getNextDay() {
let now = new Date(); //获取当前时间
now.setDate(now.getDate() + 1);
let year = now.getFullYear();
let month = now.getMonth() + 1;
month = month < 10 ? "0" + month : month;
let day = now.getDate();
return year + "-" + month + "-" + day;
}
网友评论