{ "CASE#":"HW248015", "DATE OF OCCURRENCE":"4/25/2013 22:15", "BLOCK":"001XX E CULLERTON ST", "IUCR":1090, "PRIMARY DESCRIPTION":"ARSON", "SECONDARY DESCRIPTION":"ATTEMPT ARSON", "LOCATION DESCRIPTION":"VEHICLE NON-COMMERCIAL", "ARREST":"Y", "DOMESTIC":"N", "BEAT":132, "WARD":2, "FBI CD":9, "X COORDINATE":1177803, "Y COORDINATE":1890777, "LATITUDE":41.85561513, "LONGITUDE":-87.62285706, "LOCATION":"(41.85561512980008, -87.62285706418919)" }, { "CASE#":"HW248271", "DATE OF OCCURRENCE":"4/26/2013 7:45", "BLOCK":"044XX W DICKENS AVE", "IUCR":1020, "PRIMARY DESCRIPTION":"ARSON", "SECONDARY DESCRIPTION":"BY FIRE", "LOCATION DESCRIPTION":"VEHICLE NON-COMMERCIAL", "ARREST":"N", "DOMESTIC":"N", "BEAT":2522, "WARD":31, "FBI CD":9, "X COORDINATE":1146081, "Y COORDINATE":1913539, "LATITUDE":41.91873792, "LONGITUDE":-87.73871364, "LOCATION":"(41.91873791947538, -87.73871364344983)" },
我有Json。我希望从CASE#中获得价值,但我不知道如何调用它。 我试过了
db.data[i].CASE#没有用
db.data[i]['CASE#']也没有工作
任何人都知道如何在Javascript中调用它?
答案 0 :(得分:0)
你可以尝试这个[js fiddle](http://jsfiddle.net/9WX8N/)