我使用zWeatherFeed来显示天气,但我找不到任何改变选项的例子。
<style>
.weatherItem{padding-left:200px;}
.odd{height:130px;}
.weatherCity{font-weight:bold;}
.weatherFeed{height: 130px; width: 100%;}
</style>
<script type="text/javascript">
$(document).ready(function () {
$('#test').weatherfeed(['TUXX0015']);
});
</script>
<div id="test">
</div>
例如我想要在第二天展示。有关于这个天气插件或任何其他天气插件的任何示例吗?我更喜欢使用zWeatherFeed,因为这个插件具有很好的可视化效果。
感谢。
答案 0 :(得分:1)
zWeatherFeed插件目前无法显示第二天的预测(尽管提供了完整预测的链接)。可用选项包括:
答案 1 :(得分:0)
<script type="text/javascript">
$(document).ready(function () {
$('#weatherDiv').weatherfeed(['EIXX0048'], {
forecast: true
});
});
</script>
如果添加选项 预测:真 到该功能的选项,它将显示接下来5天的预测。一个完整的例子可以在: http://www.zazar.net/developers/jquery/zweatherfeed/example_forecast.html