📅  最后修改于: 2022-03-11 14:54:09.895000             🧑  作者: Mango
const monthNames = ["January", "February", "March", "April", "May", "June",
"July", "August", "September", "October", "November", "December"
];
const d = new Date();
document.write("The current month is " + monthNames[d.getMonth()]);
Run code snippet