0
我試圖在javascript中獲取數組中的數據。從javascript中提取數組數據
這裏是我的arrayProgram在javascript:
[0] => Array (
[Program] => Array (
[event_name] => Event Daily
[keyword] => KVIP SHOWTIME
[start_date] => 2017-04-07 12:00:00
[end_date] => 2017-04-03 15:00:00
[location] => Studio 1
[slots] => 10
[event_color] => #9a9aff
[is_allday] => 1
[repeat_program] => daily-weekly
[repeat_every] => 1
[repeat_days] => ,1,2,3,4,5,6
[repeat_yearly] => 0
[is_end] => 0
)
)
[1] => Array (
[Program] => Array (
[event_name] => NEWS
[keyword] => KVIP NEWS
[start_date] => 2017-04-30 05:30:00
[end_date] => 2017-04-01 19:00:00
[location] => Studio 4
[slots] => 05
[event_color] => #fb8979
[is_allday] => 1
[repeat_program] => monthly
[repeat_every] => 0
[repeat_days] =>
)
)
[2] => Array (
[Program] => Array (
[event_name] => ASAP
[keyword] => KVIP ASAP
[start_date] => 2017-12-31 12:00:00
[end_date] => 2017-04-01 15:00:00
[location] => Studio 10
[slots] => 16
[event_color] => #9a9aff
[is_allday] => 1
[repeat_program] => yearly
[repeat_every] => 0
[repeat_days] =>
)
)
我如何可以提取使用for循環中的數據?我嘗試使用$ .each,但它不適合我。有人可以幫幫我嗎?