🌈 搜索
📅  最后修改于: 2022-03-11 15:04:28.547000             🧑  作者: Mango
var day = yourDateObject.getDay(); var isWeekend = (day === 6) || (day === 0); // 6 = Saturday, 0 = Sunday