我想用多行和多行解析我的数组,我尝试使用 foreach 或 for 循环,但没有成功
var student = [
{name:"alan",title:"al",platform:"test1",orderNumber:1 },
{name:"frank",title:"fr", platform:"test2",orderNumber:1},
{name:"bryan",title:"br", platform:"test3",orderNumber:1}
];
for (var i = 0; i < student.length; ++i) {
window.alert(student[i]);
}
它不起作用。我怎么能用循环解析这个数组并显示它?多谢
梵蒂冈之花
守着星空守着你
相关分类