import moment from 'moment'
console.log(moment().add(1, 'days').format('YYYY-MM-DD')) //当前时间前一天
console.log(moment().add(-1, 'week').format('YYYY-MM-DD'))//当前时间前一周
console.log(moment().add(1, 'week').format('YYYY-MM-DD'))//当前时间后一周

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-24
  • 2021-10-04
  • 2022-12-23
  • 2021-12-12
  • 2021-09-04
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-08-26
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-16
相关资源
相似解决方案