Javascript:获取当前日期,可以加减天数
function getDateByDays(iDays){ var date=new Date(); date=new Date(date.setDate(date.getDate()+iDays)); var year=date.getFullYear(); var month=date.getMonth()+1; var day=date.getDate(); if(month&...