📜  js 列表 MMMM - Javascript 代码示例

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

代码示例1
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()]);