var nowDate = new Date();
var year = nowDate.getFullYear();
var month = nowDate.getMonth() + 1 < 10 ? "0" + (nowDate.getMonth() + 1)
nowDate.getMonth() + 1;
var day = nowDate.getDate() < 10 ? "0" + nowDate.getDate() : nowDate
getDate();
var dateStr = year + "-" + month + "-" + day;
如果觉得我的文章对您有用,请随意打赏。你的支持将鼓励我继续创作!