//时间戳
function getData() {
let week = ['日', '一', '二', '三', '四', '五', '六'];
let y = new Date().getFullYear(),
m = new Date().getMonth() + 1,
d = new Date().getDate(),
w = week[new Date().getDay()]
return y + "-" + (m < 10 ? "0" + m : m) + "-" + (d < 10 ? "0" + d : d) + " " + "星期" + w + " " + new Date().toTimeString().substr(0, 8);
},
},