摘要:
function getPrevDate(){ var nowDate = new Date(); var prevDate = new Date(); nowDate = Date.parse(nowDate);//将日期转化为毫秒数 prevDate.setTime(nowDate - 65*365*24*60*60*1000);//计算65年前的日期 alert(prevDate); var format = prevDate.getFullYear()+"-"+(prevDate.getMonth()+1)+"-"+prevDate.getDay 阅读全文