This commit is contained in:
底层用户 2021-09-27 09:10:12 +08:00
parent da00c86790
commit ecaec186d2

View File

@ -22,7 +22,7 @@ var vm = new Vue({
var myHours = myDate.getHours(); // 获取当前小时(0-23) var myHours = myDate.getHours(); // 获取当前小时(0-23)
var myMinu = myDate.getMinutes(); // 获取当前分钟(0-59) var myMinu = myDate.getMinutes(); // 获取当前分钟(0-59)
var mySec = myDate.getSeconds(); // 获取当前秒数(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.hour = myHours;
this.year = myYear; this.year = myYear;
@ -30,7 +30,7 @@ var vm = new Vue({
this.day = myDay - 1; this.day = myDay - 1;
this.curday = myDay; this.curday = myDay;
this.week = myWeek; this.week = myWeek;
this.curweek = myWeek + 1; this.curweek = myWeek +1;
this.minute = myMinu; this.minute = myMinu;
this.age = myYear - this.yearForYour; this.age = myYear - this.yearForYour;
}, },