Vue
var currentDate = new Date();
var currentY = currentDate.getFullYear();
var currentM = currentDate.getMonth() + 1;
var lastM = new Date(currentY, currentM, 0);
var firM = `${new Date().getFullYear()}-${new Date().getMonth() + 1}-01`;
this.startDate = handDate(firM);
this.endDate = handDate(lastM);
效果 2023-07-01 至 2023-07-31
获取月初月末时间戳
最新推荐文章于 2022-10-28 18:44:42 发布