我进行了 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
and属性!title
任何帮助,伙计们?
谢谢。