(vari=0;i<json.length;i++){alert(json[i].text+""+json[i].value)}}</script> javascript数组遍历for与forin区别详解