动态时钟代码运行没多久电脑就很卡,请帮我看看代码有什么问题,谢谢
<html><head>
<title>动态计时器</title>
<script language="javascript">
function n()
{
var now=new Date()
year=now.getYear()+"年"
month=now.getMonth()+"月"
day=now.getDate()+"日"
hours=now.getHours()+"时"
minutes=now.getMinutes()+"分"
secends=now.getSeconds()+"秒"
my.innerHTML=year+month+day+hours+minutes+secends
setInterval("n()",1000)
}
</script>
</head>
<body onLoad="n()">
<div id="my"></div>
</body>
</html>