这样写不能实现暂停后继续吗?求解!
clock()和clock这两种方法调用我都试过了,都不行啊 求大神解答
2018-01-11
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>计时器</title>
<script type="text/javascript">
function clock(){
var time=new Date();
document.getElementById("clock").value = time;
}
</script>
</head>
<body>
<form>
<input type="text" id="clock" size="30" />
<input type="button" value="Stop" onclick="setInterval("clock()",100)"/>
</form>
</body>
</html>
举报