📌  相关文章
📜  获取当前周的第一个日期和最后一个日期 - 无论代码示例

📅  最后修改于: 2022-03-11 14:56:56.636000             🧑  作者: Mango

代码示例1
weekdate() {
     var curr = new Date();
     var first = curr.getDate() - curr.getDay() + 1;
     this.firstday = new Date(curr.setDate(first));
     this.lastday = new Date(curr.setDate(curr.getDate() + 6));
   }