1
我正在使用openweathermap來顯示天氣報告。一切工作正常,但圖標有問題。 JSON響應代碼是:如何顯示openweathermap天氣圖標
Array
(
[city] => Array
(
[id] => 1271476
[name] => Guwahati
[coord] => Array
(
[lon] => 91.751
[lat] => 26.1862
)
[country] => IN
[population] => 899094
)
[cod] => 200
[message] => 0.0630711
[cnt] => 1
[list] => Array
(
[0] => Array
(
[dt] => 1495688400
[temp] => Array
(
[day] => 33
[min] => 24.89
[max] => 33.82
[night] => 24.89
[eve] => 30.6
[morn] => 33
)
[pressure] => 1013.02
[humidity] => 90
[weather] => Array
(
[0] => Array
(
[id] => 500
[main] => Rain
[description] => light rain
[icon] => 10d
)
)
[speed] => 3.92
[deg] => 88
[clouds] => 24
[rain] => 2.73
)
)
)
現在我怎樣才能顯示的圖標:[天氣] [0] [圖標] => 10D
什麼10D &我怎樣才能得到的網址圖標。
謝謝先進。
http://jsfiddle.net/deep3015/e3rLe693/4/從已刪除的問題檢查了這 –