• 时间表


    <!DOCTYPE html>
    <html>
        <head>
            <meta charset="utf-8">
            <title></title>
        </head>
        <body>
            <!--<span id="shijian"></span>
            <script>
                window.setInterval("time()",500);
                function time(){
                    var time=new Date();
                    var n=time.getFullYear();
                    var y=time.getMonth()+1;
                    var d=time.getDate();
                    var s=time.getHours();
                    var f=time.getMinutes();
                    var m=time.getSeconds();
                
                document.getElementById("shijian").innerText=n+"年"+y+"月"+d+"日--"+s+"时"+f+"分"+m+"秒";
            }
            </script>-->
            
            
            <span id="shijian"></span>
            <script>
                window.setInterval("time()",500)
                function time(){
                    var time=new Date();
                    var n=time.getFullYear();
                    var y=time.getMonth()+1;
                    var r=time.getDate();
                    var s=time.getHours();
                    var f=time.getMinutes();
                    var m=time.getSeconds();
                    
                    document.getElementById("shijian").innerText=n+"年"+y+"月"+r+"日--"+s+"时"+f+"分"+m+"秒"
                }
            </script>
        </body>
    </html>

  • 相关阅读:
    改进动物园
    异常动手脑总结
    代码大全2 阅读笔记
    抽象和接口
    Appium+python自动化2-启动百度app
    Appium+python自动化1-环境搭建
    python之图像识别
    python之栈和队列
    python之语音识别(speech模块)
    使用Python计算IP、TCP、UDP校验和
  • 原文地址:https://www.cnblogs.com/zhangbaobao/p/6628842.html
Copyright © 2020-2023  润新知