Discuss
/
JavaScript
/
哈哈
哈哈
Topic sourcevar today = new Date(); if (today.getMonth().t===1 && today.getDate()===3) { alert('亲爱的,我预定了晚餐,晚上6点在餐厅见!'); }else alert(new Date().getMonth());
- 1
var today = new Date(); if (today.getMonth().t===1 && today.getDate()===3) { alert('亲爱的,我预定了晚餐,晚上6点在餐厅见!'); }else alert(new Date().getMonth());
我胖起来了不得
var today = new Date(); if (today.getMonth() === 6 && today.getDate() === 13) { alert('亲爱的,我预定了晚餐,晚上6点在餐厅见!'); } else{ alert('亲爱的,我预定晚餐失败了。'); };