Date curDate = new Date();
var preDate = new Date(curDate.getTime() - 24*60*60*1000); //前一天var nextDate = new Date(curDate.getTime() + 24*60*60*1000); //后一天本文共 209 字,大约阅读时间需要 1 分钟。
Date curDate = new Date();
var preDate = new Date(curDate.getTime() - 24*60*60*1000); //前一天var nextDate = new Date(curDate.getTime() + 24*60*60*1000); //后一天转载于:https://www.cnblogs.com/yaomajor/p/7156555.html