📅  最后修改于: 2022-03-11 15:02:43.908000             🧑  作者: Mango
代码示例2
var MILLIS_PER_DAY = 1000 * 60 * 60 * 24;var now = new Date();
var yesterday = new Date(now.getTime() - MILLIS_PER_DAY);