getTime() {
//this.currentdate = Date.now();时间戳
var date = new Date();
var seperator1 = “-”;
var year = date.getFullYear();
var month = date.getMonth() + 1;
var strDate = date.getDate();
var Hours = date.getHours();
var Minutes = date.getMinutes();
var Second = date.getSeconds();
if (month >= 1 && month <= 9) {
month = “0” + month;
}
if (strDate >= 0 && strDate <= 9) {
strDate = “0” + strDate;
}
if (Minutes >= 0 && Minutes <= 9) {
Minutes = “0” + Minutes;
}
if (Second >= 0 && Second <= 9) {
Second = “0” + Second;
}
this.currentdate =year + seperator1 +month +seperator1 + strDate +"\u00a0" + Hours + “:” + Minutes + “:” +Second;
}