Discuss / JavaScript / 月份有坑

月份有坑

Topic source
var today = new Date();
if (today.getMonth() + 1 === 2 && today.getDate() === 14) {
    alert('亲爱的,我预定了晚餐,晚上6点在餐厅见!');
}else {
    alert('不来你就完了!!');
}

  • 1

Reply