标签:io ar sp on cti bs html ad htm
<html>
<head>
<script>
var i=0;
var t;
function x()
{
document.getElementById("txt").value=i;
i=i+1;
t=setTimeout("x()",1000);
}
<script/>
<head/>
<body>
<input type="button" value="点击开始计时" onclick="x()"/>
<input type="text" id="txt"/>
<body/>
<html/>
<!--如果用户一直点击按钮,那么计时会变快。我称之为(不稳定现象)-->
标签:io ar sp on cti bs html ad htm
原文地址:http://www.cnblogs.com/chuhun4-5/p/4094631.html