年月日时间
let nowDate = new Date();let year = nowDate.getFullYear();let month = nowDate.getMonth() + 1;let day = nowDate.getDate();let hour = nowDate.getHours(); let m = nowDate.getMinutes();let s = nowDate.getSeconds();month = month > 9 ? month : "0" + month;day = day > 9 ? day : "0" + day; hour = hour > 9 ? hour : "0" + hour;m = m > 9 ? m : "0" + m;s = s > 9 ? s : "0" + s;this.time = hour + ":" + m;this.date = year + "/" + month + "/" + day;this.today = nowDate.getDay();