📜  javascript 工作日名称 - Javascript 代码示例

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

代码示例1
let weekday = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'][new Date().getDay()]
document.write(weekday)