📌  相关文章
📜  js 获取星期一到星期五的星期几 - Javascript 代码示例

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

代码示例1
var currentDate = new Date();
var firstday = new Date(currentDate.setDate(currentDate.getDate() - currentDate.getDay())).toUTCString();
var lastday = new Date(currentDate.setDate(currentDate.getDate() - currentDate.getDay() + 7)).toUTCString();
console.log(firstday, lastday)