你直接@子幽 这位帮你写计时器大神就行了
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>系统时间</title>
</head>
<body>
<div id="datetime">
<script>
setInterval("document.getElementById('datetime').innerHTML=new Date().toLocaleString();", 1000);
</script>
</div>
</body>
新建文本文件,修改后缀为html 然后把代码复制进去保存,然后点击这个html文件即可