zoukankan      html  css  js  c++  java
  • 局部时间:跑秒

    度秒计时

    <title>无标题文档</title>
    <script src="/JiaoWu/JiaoWu/A/Public/three/cb/js/jquery.js"></script>
    </head>
    
    <body>
    
    <div>时间:<span id="shj"></span></div>
    
    <script type="text/javascript">
    $(document).ready(function(e) {
        window.onload=function(){
            //定时器每秒调用一次shj()
            setInterval(function(){ 
                shj(); },1000);
        }
        function shj()
        {
        $.ajax({
            url:"__CONTROLLER__/ShJ",
            data:{},
            type:"POST",
            dataType:"TEXT",
            success: function(data){
                $("#shj").html(data);
                }
            });
        }
    
    });
    
    </script>
    
    </body>
    </html>
        //时间
        function ShJ()
        {
            echo date("h:i:sa");    
        }
        
  • 相关阅读:
    N-Queens
    Pow(x, n)
    Maximum Subarray
    Spiral Matrix
    Jump Game
    Merge Intervals
    Insert Interval
    Length of Last Word
    Spiral Matrix II
    Amazon 面经
  • 原文地址:https://www.cnblogs.com/wanlibingfeng/p/5620011.html
Copyright © 2011-2022 走看看