<!DOCTYPE?HTML>
<html>
<head>
<meta?http-equiv="Content-Type"?content="text/html;?charset=utf-8">
<title>無標題文檔</title>
</head>
<body>
<form>
????<input?type="text"?name="zzz"/>
</form>
<script?type="text/javascript">
?var?A;
?var?B=new?Date();
?var?C=document.getElementsByName("zzz");
?function?add(){
?????A=B.getSeconds()
?????C[0].value=A
}
setInterval(add,1000)
</script>
</body>
</html>
求解答,計時器無法工作!
我要沖錢
2016-12-07 19:25:52