JS循环数组几种方式
data1 = []; data1.push({ value: "", text: "请选择" }); json.data.result.forEach(function (e) { data1.push(e); }); var index=0; while (index < json.data.result.length) { data1.push(json.data.result[index++]); } var index = 0; do{ data1.push(json.data.result[index++]) } while (index < json.data.result.length)