📜  js昨天日期 - Javascript代码示例

📅  最后修改于: 2022-03-11 15:02:07.430000             🧑  作者: Mango

代码示例4
var start = new Date();
start.setHours(0, 0, 0, 0);
start = start.getTime();

var end = new Date();
end.setHours(0, 0, 0, 0);
end.setDate(end.getDate() + 1);
end = end.getTime();