moment.js 获取昨天日期

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

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