📅  最后修改于: 2022-03-11 15:03:27.993000             🧑  作者: Mango
var d = new Date("January 14, 2012");
console.log(d.toLocaleDateString());
d.setMonth(d.getMonth() - 3);
console.log(d.toLocaleDateString());