【发布时间】:2012-10-01 09:30:23
【问题描述】:
我进行了一个 ajax 调用,并以这种形式从控制器中取回数据。
Array
(
[0] => stdClass Object
(
[cat_id] => 2
[title] => Clothes
[description] => Clothing for men and women
[active_coupon_counter] => 0
[store_id] => 1
)
[1] => stdClass Object
(
[cat_id] => 17
[title] => Designer
[description] => ;description
[active_coupon_counter] => 0
[store_id] => 1
)
[2] => stdClass Object
(
[cat_id] => 24
[title] => Fashion
[description] => ;description
[active_coupon_counter] => 0
[store_id] => 1
)
)
Array
这可能看起来很愚蠢,但我不知道如何访问每个数组中的 cat_id 和 title 属性!
有什么帮助吗,伙计们?
谢谢。
【问题讨论】:
标签: javascript ajax