日期:2014-05-16 浏览次数:20361 次
var x=new Date(); x.setFullYear(2100,0,14); var today = new Date(); if (x>today) { alert("Today is before 14th January 2100"); } else { alert("Today is after 14th January 2100"); }
var myDate=new Date(); myDate.setDate(myDate.getDate()+5);