//日期多加一天的方法
getNextDay(d){
d = new Date(d);
d = +d + 1000*60*60*24;
d = new Date(d);
//return d;
//格式化
return d.getFullYear()+"-"+(d.getMonth()+1)+"-"+d.getDate();
}
console.log(this.getNextDay("2023-08-10"));
06-14
2356
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
04-23
514
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)