javascript setTimeout方法的使用

来源:互联网 发布:巨人网络策划笔试题 编辑:程序博客网 时间:2024/04/30 11:24
<!DOCTYPE html><html>  <head>    <title>js14.html</title>    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">    <meta http-equiv="description" content="this is my page">    <meta http-equiv="content-type" content="text/html; charset=UTF-8">        <!--<link rel="stylesheet" type="text/css" href="./styles.css">-->    <!-- 定时器的用法 -->    <script type="text/javascript">        function count(){        setTimeout("alert('OK');", 1000);    }    </script>  </head>    <body>         <input type = "button" value = "计时开始" onclick = "count()">     </body></html>