沒有 結果
我想請問一下為什么這個不能運行
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>計時器</title>
</head>
<body>
<script type="text/javascript">
function be(){
? ? ? ? var time=new Date();
? ? ? ? document.getElementById("in").value=time;
}
i=setInterval("begin()",1000);
function st(){
clearInterval(i)
}
? ? ?<input type="text" id="in" size="50px" />
? ? <br/>
<input type="button" value="begin" onclick="be()"/>
<input type="button" value="stop" onclick="st()"/>
</script>
</body>
</html>
2017-01-23
寫上點擊事件
2017-01-23
上面不是有點擊事件onclick()