如何使用javascript访问此字典中的字段1值?
var a= "channel":
{
"latitude":"1.0",
"longitude":"2.0",
"field 1":"34"
}
答案 0 :(得分:0)
var x = {
"channel": {
"latitude": "0.0",
"longitude": "0.0",
"field 1": "Y"
}
}
console.log(x["channel"]["field 1"])