标签:time gettime eth col second seconds date() style div
/*获取时间*/ getTime: function() { var _this = this; let yy = new Date().getFullYear(); let mm = new Date().getMonth() + 1; let dd = new Date().getDate(); let hh = new Date().getHours(); let mf = new Date().getMinutes() < 10 ? "0" + new Date().getMinutes() : new Date().getMinutes(); let ss = new Date().getSeconds() < 10 ? "0" + new Date().getSeconds() : new Date().getSeconds(); _this.gettime = yy + "-" + mm + "-" + dd + " " + hh + ":" + mf + ":" + ss; },
标签:time gettime eth col second seconds date() style div
原文地址:https://www.cnblogs.com/web-shu/p/13064630.html