📜  今天和昨天开始的javascript - Javascript代码示例

📅  最后修改于: 2022-03-11 15:03:18.408000             🧑  作者: 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();