87,910
社区成员
发帖
与我相关
我的任务
分享
<html>
<head>
<script type="text/javascript">
function show()
{
var time=new Date();
var hour=time.getHours();
var minute=time.getMinutes();
var second=time.getSeconds();
document.write(hour+":"+minute+":"+second);
setTimeout("show()",1000);
}
</script>
</head>
<body>
<input type="button" value="点击开始时间" onClick="show()"/>
</body>
</html>