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