JavaScript
js创建一段日期数据集合 标签描述

 下面是获取前十五天和后十五天的日期 letdateList=[]; for(leti=-15;i<15;i){ letobj=getDateInfo(nowDateTime+i2460601000); obj.isChoose=i0; dateList.push(obj); } constformatTime=date=>{ constyear=date.getFullYear() constmonth=date.getMonth()+1 constday=date.getDate() consthour=date.getHours() constminute=...