我有一个数组
Array
(
[1] => Array
(
[title] => Graslei BVBA
[address] => Belgium Bent
)
[2] => Array
(
[title] => Red Poppy SPRL
[address] => Belgium 4900 Spa
)
[3] => Array
(
[title] => Loula Bee
[address] => Belgium Liege
)
)
我将 javascript 函数中的数组作为json_encode
.
请任何人都可以帮助我在 javascript 中阅读此 JSON。
var info = {
"1":{"title":"Graslei BVBA","address":"Belgium Bent"},
"2":{"title":"Red Poppy SPRL","address":"Belgium 4900 Spa"},
"3":{"title":"Loula Bee","address":"Belgium Liege"}
}
我想从上面读取地址。
提前感谢您的帮助。