<!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>
javascript setTimeout方法的使用
最新推荐文章于 2021-02-12 14:17:21 发布