https://blog.youkuaiyun.com/fture_bird/article/details/80915668
const week = ["日", "一", "二", "三", "四", "五", "六"];
showDate: function () {
let now = new Date();
let y = now.getFullYear();
let MM = now.getMonth() + 1;
MM = MM < 10 ? "0" + MM : MM;
let d = now.getDate();
d = d < 10 ? "0" + d : d;
return y + "年" + MM + "月" + d + "日 星期" + week[now.getDay()];
}
2020年03月20日 星期五