JS 定义一个空数组,我想将第一次获取到的值传入,后续获取到的值通过判断传入,这要怎么做?var arr = new Array()for(var i in data){arr.push(data[0])if(data[i+1] ==判断条件){arr.push(data[i+1])}}var arrPic = {}定义一个2023-03-03JavaScript180