【发布时间】:2014-10-27 12:18:07
【问题描述】:
我是 json 新手,所以我从我的 ajax 调用中得到一个 json 响应
现在我被困在循环 json 对象中
这是我的 json
{
"0": {
"image": "http://test.com/systems.jpg",
"anchor_tag_link": "http://test.com/1",
"title": "Oct-Dec-2013"
},
"1": {
"image": "http://test.com/energy.jpg",
"anchor_tag_link": "http://test.com/1",
"title": "July-Sept-2013"
},
"pages": 2
}
谁能帮忙
【问题讨论】:
-
$array = json_decode("json string",true); ??然后循环数组
-
是对象还是字符串?
标签: javascript php json