📌  相关文章
📜  js 日期是周末 - Javascript 代码示例

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

代码示例1
var day = yourDateObject.getDay();
var isWeekend = (day === 6) || (day === 0);    // 6 = Saturday, 0 = Sunday