//fromDate 需要传入的日期(YYYY-MM-DD)
dayInterval大于0 前几天 小于0后几天
function getDateFromCurrentDate(fromDate,dayInterval){
var curDate = new Date(Date.parse(fromDate.replace(/-/g,"/")));
curDate.setDate(curDate.getDate()+dayInterval);
var year = curDate.getFullYear();
var month = (curDate.getMonth()+1)<10?"0"+(curDate.getMonth()+1):(curDate.getMonth()+1);
var day = curDate.getDate()<10?"0"+curDate.getDate():curDate.getDate();
return year+"-"+month+"-"+day;
};