📜  javascript 月份名称 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:44.707000             🧑  作者: Mango

代码示例2
var  months = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
var d = new Date();
var monthName=months[d.getMonth()]; // "July" (or current month)