jQuery 定时局部刷新

<head>

 <script src="jQuery/jquery-1.4.1.min.js" type="text/javascript"></script>

  
        <script>
            $(document).ready(function () {
              
               setInterval("startRequest()",1000);
             
            });
           
            function startRequest()
            {
                $("#date").text((new Date()).toString());
            }
        </script>
  
</head>

posted @ 2010-11-24 22:40  你妹的sb  阅读(1085)  评论(0编辑  收藏  举报
百度一下