lubo
网上找的,这个加号有点不懂,先记下来
function dateAdd(startDate) {
  startDate = new Date(startDate);
  startDate = +startDate + 1000 * 60 * 60 * 24;
  startDate = new Date(startDate);
  var nextStartDate = startDate.getFullYear() + "-" + (startDate.getMonth() + 1) + "-" + startDate.getDate();
  return nextStartDate;
}

相关文章: