我对这段代码做错了什么,我无法让它打印出任何团队的名称。我希望它输出第一队或第二队等的名称。但没有任何效果。有什么帮助吗?
var seeds = [
{ "id" : 1, "name" : "Team 1" }
{ "id" : 2, "name" : "Team 2" }
{ "id" : 3, "name" : "Team 3" }
{ "id" : 4, "name" : "Team 4" }
{ "id" : 5, "name" : "Team 5" }
{ "id" : 6, "name" : "Team 6" }
{ "id" : 7, "name" : "Team 7" }
{ "id" : 8, "name" : "Team 8" }
]
document.write(seeds[0].name);