From ecaec186d2fb7df2aaa4f7553ab774ce313a66bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BA=95=E5=B1=82=E7=94=A8=E6=88=B7?= Date: Mon, 27 Sep 2021 09:10:12 +0800 Subject: [PATCH] fix bug --- js/time.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/time.js b/js/time.js index 5b2a833..6f1b90b 100644 --- a/js/time.js +++ b/js/time.js @@ -22,7 +22,7 @@ var vm = new Vue({ var myHours = myDate.getHours(); // 获取当前小时(0-23) var myMinu = myDate.getMinutes(); // 获取当前分钟(0-59) var mySec = myDate.getSeconds(); // 获取当前秒数(0-59) - var myWeek = myDate.getDay() + 6; //获取当前星期几(0-6) + var myWeek = myDate.getDay() -1; //获取当前星期几(0-6) this.hour = myHours; this.year = myYear; @@ -30,7 +30,7 @@ var vm = new Vue({ this.day = myDay - 1; this.curday = myDay; this.week = myWeek; - this.curweek = myWeek + 1; + this.curweek = myWeek +1; this.minute = myMinu; this.age = myYear - this.yearForYour; },