您的位置:首页 > Web前端 > JQuery

使用Jquery官方自带的显示时间的一款插件jquery.jclock.js

2017-11-14 19:19 806 查看
项目中需要加入一些的简单的天气以及时间的显示,本意是想调用接口,但想来其实不必要,于是统统用插件完成的,以下为实现过程,引入js

<script src="/js/jquery.js" type="text/javascript"></script>
<script src="/js/jquery.jclock.js" type="text/javascript"></script>
<script type="text/javascript">
//时间
window.onload = function() {
$("#time").jclock({withDate:true,withWeek:true });
}

</script>


引入天气插件

<iframe name="weather_inc" src="http://i.tianqi.com/index.php?c=code&id=10"
width="300" height="25" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"  ></iframe>


页面效果,天气效果是滚动的显示3天的数据



js下载移步 点击打开链接

天气插件移步 http://www.tianqi.com/dingzhi/
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
相关文章推荐