fix bug
This commit is contained in:
parent
da00c86790
commit
ecaec186d2
@ -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;
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user