function getLast(cur){ //cur 当前时间
var firstDay = new Date(cur.getFullYear() + '/' + (cur.getMonth()+1) + '/' + cur.getDate() + ' 00:00:00');
firstDay.setDate(1);
//月末
var lastDay = new Date(+firstDay);
lastDay.setMonth(lastDay.getMonth() + 1);
lastDay.setDate(0);

return [firstDay,lastDay];
}

 

相关文章:

  • 2021-06-16
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-24
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-08-10
  • 2022-01-27
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案