mirror of
https://github.com/imsyy/home.git
synced 2024-11-16 03:32:17 +08:00
天气 Fix
This commit is contained in:
parent
d95b2708c3
commit
7803016119
|
@ -189,9 +189,9 @@
|
|||
<div class="weather">
|
||||
<span id="city_text">天气</span>
|
||||
<span id="wea_text">加载失败</span>
|
||||
<span id="tem_text">*</span>°C
|
||||
<span id="win_text"></span>
|
||||
<span id="win_speed">*</span>级
|
||||
<span id="tem_text"></span>
|
||||
<span id="win_text">次数</span>
|
||||
<span id="win_speed">超限</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -174,9 +174,9 @@ function getWeather() {
|
|||
.then(response => response.json())
|
||||
.then(weather => {
|
||||
$('#wea_text').html(weather.now.text)
|
||||
$('#tem_text').html(weather.now.temp)
|
||||
$('#tem_text').html(weather.now.temp+"°C ")
|
||||
$('#win_text').html(weather.now.windDir)
|
||||
$('#win_speed').html(weather.now.windScale)
|
||||
$('#win_speed').html(weather.now.windScale+"级")
|
||||
})
|
||||
})
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue
Block a user