var timeList=new Array();
var timeListArr=new Array();
for (var i = 0; i < Num; i++){
timeList[i] = bgTimeH + ":" + bgTimeM;
timeListArr[i]={};//重点
timeListArr[i].time = timeList[i - 1] + "-" + timeList[i]
}
js中for循环创建多维数组需要每个都定义
最新推荐文章于 2021-09-17 21:35:10 发布