📅  最后修改于: 2022-03-11 14:56:56.636000             🧑  作者: Mango
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));
}