日历深色当天

This commit is contained in:
2020-10-13 09:15:08 +08:00
parent bbe9e3bcc2
commit 9e2122a466
2 changed files with 22 additions and 15 deletions

View File

@@ -7,6 +7,7 @@ export function getdate(yue?: number){
}
yue = now.month() + 1;
const day = now.date() // 当前天
const zhou = now.day(); // 当前周
now = now.date(1)
const week = now.day(); // 第一天是星期几
now = now.month(now.month() + 1);
@@ -44,6 +45,6 @@ export function getdate(yue?: number){
}
console.log(date)
return {date, year, yue};
return {date, year, yue, day, zhou};
}