这里我附上了json结果。
"properties": {
"id": 99,
"county": "Ashe",
"cen_lat": 36.4343964583676,
"cen_long": -81.5004915302458,
"county_id": "5",
"extent": "[-9099469.85881319,4333729.96758589,-9044051.86962052,4381852.80674575]"
}
当我读取范围并获得结果时
“[ - 9099469.85881319,4333729.96758589,-9044051.86962052,4381852.80674575]”
但我需要
[ - 9099469.85881319,4333729.96758589,-9044051.86962052,4381852.80674575]
我怎么才能得到?
答案 0 :(得分:0)
如评论中所述。
JSON.parse("[-9099469.85881319,4333729.96758589,-9044051.86962052,4381852.80674575]");