• 时间


    <!DOCTYPE html>
    <html>
        <head>
            <meta charset="utf-8">
            <title>当前系统时间</title>
            <script type="text/javascript">
                window.onload function() {
                    showTime();
                }
                function checkTime(i){
                    if(i<10){
                    i="0"+i;
                    }
                    return i;
                }
                function showTime() {
                    var myDate = new Date();
                    //alert(myDate);.getFullYear-.getMonth+1-
                    var year myDate.getFullYear();
                    var month myDate.getMonth() 1;
                    var date myDate.getDate();
                    //alert(myDate.getDay());
                    var myDate.getDay();
                    var weekday = new Array(7);
                    weekday[1"星期一";
                    weekday[2"星期二";
                    weekday[3"星期三";
                    weekday[4"星期四";
                    weekday[5"星期五";
                    weekday[6"星期六";
                    weekday[0"星期七";
                    var myDate.getHours();
                    var myDate.getMinutes();
                    m=checkTime(m);
                    s=checkTime(s);
                    var myDate.getSeconds();
                    document.getElementById('show').innerHTML year "年" month "月" date "日" weekday[d] ":" ":" s;
                    setTimeout(showTime, 500);
                }
            </script>
        </head>
        <body>
            <div class="con">
                <div id="show">显示时间位置</div>
            </div>
        </body>
    </html>



  • 相关阅读:
    Linux 系统高级编程 ¶
    手表维修_机械表维修_手表维修网
    epel
    集合包含关系的快速算法 simcity 博客园
    微软的无线鼠标的电池用的快啊,今天又换新的了
    VIM字符集编码设置_icewater_新浪博客
    【索尼LT29i】索尼(SONY)LT29i 3G手机(黑色)WCDMA/GSM 【行情 报价 价格 评测】
    Python模块学习 fileinput 成长的点滴,记录与分享 博客频道 CSDN.NET
    fedora8 使用小记之:终端字体设置
    Wen Quan Yi Open Source Chinese: About
  • 原文地址:https://www.cnblogs.com/liuruimiku/p/5287566.html
Copyright © 2020-2023  润新知