var moduleViewModel;
avalon.ready(function() {
moduleViewModel = new Vue({
el: "#ViewModel",
data: {
timeLength: 3659,
hour:0,
minute:0,
second:0,
},
mounted() {
this.Time(); //调用定时器
},
methods:{
showTime: function () {
if(this.data.TimeLength == 0) {
this.hour = "00";
this.minute = "00";
this.second = "00";
return;
}
var timeLength = this.data.TimeLength;//考试时长,单位 秒