📅  最后修改于: 2022-03-11 15:02:42.809000             🧑  作者: Mango
var now = new Date();
var day = ("0" + now.getDate()).slice(-2);
var month = ("0" + (now.getMonth() + 1)).slice(-2);
var today = now.getFullYear() + "-" + month + "-" + day;