玄众妙
2019-05-25 11:50
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>定时器</title>
<script type="text/javascript">
var attime=0;
function clock(){
attime++ ;
document.getElementById("clock").value = attime;
}
setInterval(clock,1)
</script>
</head>
<body>
<form>
<input type="text" id="clock" size="50" />
</form>
</body>
</html>
优秀优秀
JavaScript进阶篇
468194 学习 · 21891 问题
相似问题