获取当前时间上一个月的Date let today = new Date(); let oldToday = new Date(today.setMonth(today.getMonth() - 1));