九州体育网 - 十年信誉网站

关于作者

Discuss / JavaScript / YC交作业

YC交作业

Topic source

凯尔芭格看个书

#1 Created at ...

var today = new Date(); if (today.getMonth() === 1 && today.getDate() === 14) { alert('亲爱的,我预定了晚餐,晚上6点在小辣椒餐厅见!'); }

应该用1来表示二月。


  • 1

Reply

WARNING: You are using an old browser that does not support HTML5. Please choose a modern browser (Chrome / Microsoft Edge / Firefox / Sarafi) to get a good experience.