Discuss / JavaScript / 这很强

这很强

Topic source

fogcrane

#1 Created at ... [Delete] [Delete and Lock User]

var d = Date.parse('2016-02-14T13:14:13.14+08:00'); var today = new Date(d); //alert(today); if (today.getMonth() === 1 && today.getDate() === 14) { alert('亲爱的,我预定了晚餐,晚上6点在餐厅见!'); }


  • 1

Reply