head>
<title></title>
<script type="text/javascript">
function bb() {
var nn = new Date();
document.getElementById("mm").value = nn;
var nn = setInterval("bb()", 1000);
}
function vv() {
clearInterval(nn);
}
</script>
</head>
<body>
<form>
<input type="text" id="mm" />
<input type="button" value="jj" onclick="bb()" />
<input type="button" value="hh" onclick="vv()" />
</form>
</body>
</html>
clearInterval(nn);这里这个不能这样用吗?
lynhao
li274058914
lynhao
相关分类