{
"reason&quo&<<t;: "查詢成功",
∞§ "result":↑₽& {
"data": {
×δ↕≠ "realtime": {
•™δ "ci∞Ωty_code": "101210701",
₽→
"city_★£name": "溫州",β× /*城(chéng)市(shì)*/
"date": "2014-10-15&qu♠∏ot;, /*日(rì)期*/
"time": "09:00:0£±♦0", /*更新時(shí)間(jiān)*/
"week": 3,
✘©® "moon": "九 ☆♣<月(yuè)廿二",
"'±"→dataUptime": 1413337811,
÷∏ "weather•♦": { /*當前實況天氣*/
"temperature":α±₽ "19", /*溫度*/
"humidity":®>← "54", /*濕度*/
"info": "霧",♥∑
&≠ quot;img": "18&q& "♣uot;
},
©®ε↕ "wind": {
≥←© &♣♣quot;direct": "北(běi)♦♥風(fēng)",
&q→πuot;power": "1級&< ✘quot;,
φε"offset": null,
&♠φ'
"windspeed&qu♠±♣©ot;: null
¥ }
},
"♦σ≠ "life": { /*生(shēng)活指數(shù)*/
"date": "2014-≠÷10-15",
₹ "info": {
♠↓≤ &qu"♦ot;chuanyi": [ /*穿衣指數(shù)*/
"較舒适",
<λ "建議(yì)著(zhe)薄外(wài)套或牛仔δελ衫褲等服裝。年(nián)老(lǎo)體(tǐ)弱者宜著(≥↑zhe)夾克衫、薄毛衣等。晝夜溫差較大(dà),注意适≈×→$當增減衣服。"
ελ>₩ ],
&quoδ>t;ganmao": [ /*感冒指數(shù)*/
"較易發",
∏•¶α "晝夜溫差較大(dà),較易發生(s£®÷hēng)感冒,請(qǐng)适當增減衣服。體(tǐ)質較☆₽弱的(de)朋(péng)友(yǒu)請≤(qǐng)注意防護。"
÷©✔ ],
γ≈ "kongtiao":≥γΩ [ /*空(kōng)調指數(shù)*/
"較少(shǎo)開(kāi)啓",
β "您将感到(dào)♣♠÷₹很(hěn)舒适,一(yī)般不(bù)需要(yà™♦∑o)開(kāi)啓空(kōng)調。"
≤€÷ ],
β↔☆♣ "wuran&quoγ∑γt;: [ /*污染指數(shù)*/
"良",
♣♣∑β "氣象條件(jiàn)有(yǒu≤→≈)利于空(kōng)氣污染物(wù)稀釋、擴散和→≈∞(hé)清除,可(kě)在室外(wài)正常活動。"
≤ ],
♣¥
"xicΩσ± he": [ /*洗車(chē)指數(shù)*/
"較适宜",
ε "較适宜洗車(chē),未來(lái✘π)一(yī)天無雨(yǔ),風(fēng)力較小(xiǎo),擦γ™洗一(yī)新的(de)汽車(chē)至少(sh¥∑ǎo)能(néng)保持一(yī)天。"
≈≤ ],
>ε← "yundong"✔★♦€;: [ /*運動指數(shù)*/
"較适宜",
φ ♠ "天氣較好(hǎo),但(dàn₽✘)風(fēng)力較大(dà),推薦您進行(σ™'xíng)室內(nèi)運動,若在戶外(wài)運動請(qǐ ±®ng)注意防風(fēng)。"
∞↓ ],
&∏™ "ziwaixian": [ /*紫外(wài)線*/
"中等",
₩₹✘ "屬中等強度紫外€"÷(wài)線輻射天氣,外(wài)出時(shí)建議 (yì)塗擦SPF高(gāo)于15、PA+的(de)防曬≠££護膚品,戴帽子(zǐ)、太陽鏡。"
$β ]
™γ☆" }
•>¶ },
"w•φ&☆eather": [ /*未來(lái)幾天天氣預報(bào)*/
{
€₹ "date": &quo≤ Ωt;2014-10-15",
≤ "info&✘↕₹quot;: {
₩ "day": [ /*白(bái)天天氣*/
"0", /*天氣ID*/
"晴", /*天氣*/
"24", /*高(gāo)溫*/
"東(dōng)北(běi)風(fēng) ∑ α", /*風(fēng)向*/
"3-4 級" /*風(fēng)力*/
],
✘©≥"night": [ /*夜間(jiān)天氣*/
"0",
¶↑ &qu πot;晴",
•☆ "1>± ¥3",
φ♣ "東(d±γ∑ōng)北(běi)風(fēng)&quo♣↔£¶t;,
β₩♣ "3-4 級"
$₹₽ ]
←π },
"weeδ €k": "三",
'" "n≈↔γ↑ongli": "九月(yuè)∑✘¶廿二"
≤♠ },
{
₩↑ "date":∞€™ε "2014-10-16",
÷ ≠π "info": {
×↓α "dawn": [☆₹
↓∏§ "0",
<®≤ "晴"∑₹★;,
™<≥ "13",
¥♣♠× "東(dōng)α♣π北(běi)風(fēng)",
®↔ "3☆₩→&-4 級"
∑φ♦♠ ],
®★★ "day": [
ε↑ &quo£₩∞±t;0",
÷αλ "晴",
γ₩≤ "25",λ™♠≤
"±Ω★Ω東(dōng)北(běi)風(fēng)"✘σ,
>α↓¶ "3-4 級"
∑
],
♠∑÷ €€' "night": [
φ' "1α≥ε®",
♥←★↕ "多(duō)雲",
≤↓★ ÷♥"15",
β¥♥ "東(dōng)北(běi)風(fēng)&∏÷ quot;,
β "3-4 級"
÷®∑ ]
}∞≠π≠,
"week&qu✔∏✘πot;: "四",
©$π "nongli":∑♦ "九月(yuè)廿三"
×≠ },
$∞> {
♠★&★"date": "2014-10-17&q≥≈uot;,
"info&q±&uot;: {
&δ© "dawn": [
&€≥∑ &q®&γφuot;1",
σ® "多(duō)雲",
α× ≠ "1↑←♦ 5",
©"✔ "÷←;東(dōng)北(běi)風(fēng)",β♠β
↓≠ε→ "3-4 級"
≥$$ ],
™↕♠ "day": [
♠ "1",
♣©∏ "多÷£β(duō)雲",
€'♥® "™∞;26",
$ ♦ "東(dōng)北(běi)風(÷δ↔&fēng)",
§↕ "3-4 級&< "quot;
],
↓¶★ σ£±σ "night": [
★₩♣ "1",
÷& "多(duō) 雲",
★∞∏ "16",
≠π "東(dōng)'©$北(běi)風(fēng)",
₩ • &quo πt;3-4 級"
λ"¥≤ ]
★©₽☆ },
"♠♠✔©week": "五",
λ≈ "nongli":£ "九月(yuè)廿四"
β> },
{
↓γ§☆ "date&÷÷ quot;: "2014-10-18 ε",
"₽ ←;info": {
✘♣ &♣≥↕§quot;dawn": [
•✔₹ "1",'↕
×↑♣> "多(duō)雲",
ε≠
&quo₽σ®t;16",
®↕β "東(dōng)北(běi)風(fαγ€δēng)",
$φ "3-4 級"
≈β ],
≠☆☆ "day": •"<[
≥" "1",
€←£≠ "多(duō)雲β$ §",
♠™ "26",
↕← ®• "東(dōng)風(fēng)",
∏λ "3-π×¥♣4 級"
<σ ],
¶★ "night": [
γε "1" ☆λ;,
♠φ← "多(duō)雲",
φ' "18",
€&
&λ→←✔quot;東(dōng)風(fēng)&qu♥×±ot;,
☆×♦ "3-4 級"
∞γ★₩ ]
®π₹ },
&q"€★∑uot;week": "六",
♥♥ "σ₹±nongli": "九月(∞ δyuè)廿五"
},
↓☆α← {
★₹ "date&qu≈ ±☆ot;: "2014-10-19&β÷quot;,
& ♥quot;info": {
≤♣↕★ "dawn↑•™": [
♥π "1",
←β ∏♣≤> "多(duō)雲",
γ≠ Ω "18",≤↕←¶
♠ Ω "東(dōng)風(≈αfēng)",
↔β₹₩ "3-4 級&q€€∑×uot;
],γφ¶♠
×α "day": [
™λ♥& "1&&€↔quot;,
εΩ "多(duō)雲••¥<",
∞ ₹ "27",
<∞ "東(dōn÷÷$g)風(fēng)",
αλ "3-4 ☆± 級"
₹©σ♦],
☆•↕ "night": [
∑← ÷©" "1",
×$• "多(duō)Ω≥®雲",
$∞ "19",
> "©≥↑;東(dōng)南(nán)風(fēng)&quo™•<±t;,
•>¶ "3-4 級"
↓β✔↓ ]
₽♦ },
&♦ "week": &q★®♣uot;日(rì)",
π" "nongli& φquot;: "九月(yuè)廿六'™≈"
},
∞φ {
§ "da©•<te": "2014-"® ♥10-20",
&quβ§ot;info": {
σ "dawn&¶≤∑←quot;: [
'♦≤☆ &quoλ©>t;1",
<★ ♣ "多(duō)雲"∏∞;,
×↑ "19",
®¥ ∏ "東(dōng)南(nán)♦<♥風(fēng)",
"δ≥♠ →& "3-4 級"
♣ &♥ ],
×σ≥ "day": §÷[
÷₽£> "1",
φ "多(duō)雲"β→£γ,
"∏∏ ;27",
∏↓®÷ "東(dōng)南(nán∑σ)風(fēng)",
'≈ "3-4 級&quo↑ t;
]®"≥,
★©© "night": [
≈∑ &quΩ✘ot;2",
∑$ "陰",
£≈ ™•↔ "18",
£®↑ "南(nán)風(fēng)&q≤≈uot;,
"✔∞ "3-4 級"
Ω÷ ]
₽£ },
≠φ "week": "一(★♣yī)",
&qu₽"§ot;nongli": "九月(yuδ☆φè)廿七"
&σ"₩ },
{
π "date": &quo≈ →βt;2014-10-21",
× "info": ∞λ∏{
"€∏;dawn": [
€¶← "2",
±± "陰",
α§™"
"18&↔₽≠₽quot;,
φ↓ "南(nán)風(←∞αfēng)",
☆±• "3-4 級'↑"
],₹&
"day&qu↓≤αot;: [
&qu★®Ωot;1",
≠≤£₽ "多(φ€©duō)雲",
→γ "26",
€Ω↕ "σγ東(dōng)北(běi)風(fēng)",
γβ↑ "3-4 級"≈↕≤α
],
↓↔∞ "night&q"γuot;: [
×✘♣¶ "2",
¶® "陰",
ε∞φ¥ &q₹≠uot;17",
↕★" "&q♣™uot;,
☆> "微(wēiδ≠& )風(fēng)"
₩< ]
φ },
&↔ Ωquot;week": "二",
★☆♠★ "nongli": ♥ "九月(yuè)廿八"
≤↕≈≥ }
],
¥₩ "pm25": { /*PM2.5*/
"key": &qu★σ'ot;Wenzhou",
∑φ "show_desc": 0,
₹✔ "pm25": {
'€ "c'×♠urPm": "97",
β☆ "♦Ωpm25": "72",
€✔× ✔↕"pm10": "97",
㙀 "l↕¶$evel": 2,
&q'✔uot;quality": "良"≥€↔;,
&qu☆Ωot;des": "可(kě)以接受的(de),除極少☆≥♥®(shǎo)數(shù)對(duì)某種₽↓污染物(wù)特别敏感的(de)人(rén)以外(wài),對(απ duì)公衆健康沒有(yǒu)危害。"
' },
"dateTimπ₹e": "2014年(nián)10月(y★↕₩uè)15日(rì)09時(shí)",
✘€ "cityName": &q→₹uot;溫州"
"↕↓ },
"d©✘ate": null,
&quoφt;isForeign": 0
$λ"¥ }
},
"e↕ ¥φrror_code": 0
}
示例代碼:functionβ§σ getBanner() {
api.showPro÷&≤gress({
title :₹§♣€ '加載中...',
modal : false
•→∑ });
api.ajax({
"&© url : 'http://op.juhe.cn$>/onebox/weather/query?cityname=太原&amφδΩ≥p;key=40666f4d80006e77d1d6ed5bfde3004c•×',
method : 'get',
σσ timeout : 30,
dataType : ★₹♦'json',
returnAl<γl : false,
}, fσ↔™unction(ret, err) {
if (ret) £±{
var urlJson = JSON.string•λ∞ify(ret);
//api.alerλγt({msg: urlJson});
/• ♦☆/alert(ret.result.data.lα$✘ife.info.chuanyi);
δσ var htmll = '<©>✔p>城(chéng)市(shì)'+ret.result.dataΩ'♠.realtime.city_name+'</p>↑σΩ'+ret.result.data.realtime.wea €ther.temperature+'度'+ret.result.data.r∑'ealtime.weather.info+'<p>'+±β<<ret.result.data.realtime.wind×γ£.direct+'</p>'+ret.result.$'☆☆data.life.info.chuan©yi+'<p>'+ret.result.da←∏Ωta.realtime.date+'星期'+ret.result.daφ☆πta.realtime.week+'</p>';
≠₽§ $api.append($api.byId('weaφther'), htmll);
//®←initSlide();
} els ₩e {
api.alert({
msg : ('錯≠π $(cuò)誤碼:' + err.code + ';錯(cuò)誤信息:'• + err.msg + '網絡狀态碼:' + err.statusCod≤☆∑e)
});
};✘♠÷
});
}