<!doctypehtml>获取当前时间到30天之后的日期区间varstartDate=newDate();varendDate=newDate();endDate.setDate(startDate.getDate()+30);vardataArr=[];varweeks=['日','一','二','三','四','五','六'];while((endDate.getTime()-startDate.getTime())>=0){varmonth=(startDate.getMonth()+...