📅  最后修改于: 2022-03-11 15:02:45.746000             🧑  作者: Mango
var date = new Date();
var firstDay = new Date(date.getFullYear(), date.getMonth(), 1);
var lastDay = new Date(date.getFullYear(), date.getMonth() + 1, 0);