首页 > 其他 > 详细

更新菜单栏日历

时间:2021-01-14 17:19:39      阅读:24      评论:0      收藏:0      [点我收藏+]
根据当前时间更新日历
   <!-- 日历 -->
            <span id="calendar-box">
                <div id="blog-calendar" style="visibility: visible;display:block !important;">
                    <table id="blogCalendar" class="Cal" cellspacing="0" cellpadding="0" title="Calendar" border="0">
                    </table>
                </div>
            </span>
            <script>
                //获取当前年月日
                var now = new Date();
                var time = now.getFullYear() + "/" + ((now.getMonth() + 1) < 10 ? "0" : "") + (now.getMonth() + 1) + "/" + (now.getDate() < 10 ? "0" : "") + now.getDate();
                loadBlogCalendar(time);
            </script>
 
技术分享图片

 

 


 

 

更新菜单栏日历

原文:https://www.cnblogs.com/zwb9792/p/14277619.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!