js获取未来7天日期+星期

//根据日期获取星期 function getWeek(dateString) { var dateArray = dateString.split("-"); date = new Date(dateArray[0],

datedatearrayddfunctionvar