下面是我的json 但存在问题。如何引用对象gongsi? 或者怎么去修改 谢谢
[
{
"Student" :
[
{
"email" : "ab123",
"sid" : 123456789,
"city" : "Leicester",
"postcode" : "LE17HA",
"gongsi"
},
{
"email" : "zy987",
"sid": 987654321,
"city": "Leicester",
"postcode": "LE 17HA",
"gongsi"
}
}
]
var gongsi=
{
"Company":
[
{
"name": "JADU",
"city": "Leicester",
"postcode":
"LE19 1RG"
},
{
"name": "IBM",
"city": "Leicester",
"postcode": "LE 17HA"
}]
}
回复讨论(解决方案)
"gongsi":{
"Company":
[
{
"name": "JADU",
"city": "Leicester",
"postcode":
"LE19 1RG"
},
{
"name": "IBM",
"city": "Leicester",
"postcode": "LE 17HA"
}]
}
不就可以了吗?或者使用变量
查看更多关于JSON_html/css_WEB-ITnose的详细内容...
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://www.haodehen.cn/did111075