1
我正在迭代通过json数据...但我无法获取console.log中的值 你能告诉我如何解决它.. 我写的是正确的语法我的控制台.. 提供下面我的代码...console.log不显示js值
function allProfile() {
for (var i = 0; i < allProfile.length; i++) {
console.log("i am here");
console.log(allProfile[i].Class of Service 1);
}
}
var allProfile = [{
Profile: 101,
'Class of Service 1': '90%'
}];
'allProfile [1]。[ “服务等级1”]'? – DontVoteMeDown