想分别打印出 bill, steve, bann 的各项var friends={ bill:{firstName:'Bill',lastName:'Manson',number:'123',address:['Hanson225, Sanhen St.','LA','903987']}, steve:{firstName:'Steve',lastName:'Nanon',number:'456',address:['JackMarry59, Nahop St.','CA','809756']}, bann:{firstName:'Bann',lastName:'Mason',number:'789',address:['Homon25, Hogon St.','OH','309878']} };var list=function(friends){ for(var i=0;i<friends.length;i++){ for(var j=0;j<friends[i].length;j++){ console.log(friends[i][j];); }; }; };//报错:SyntaxError: missing ) after argument list
添加回答
举报
0/150
提交
取消