moment.js 获取昨天日期

获取昨天:
moment().subtract(1, 'days').format('YYYY-MM-DD');

posted @ 2021-09-14 17:09  山上小和尚  阅读(1951)  评论(0)    收藏  举报