<!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>
添加回答
举报
0/150
提交
取消