为什么加一个循环让它一直显示时间就卡着运行不了了啊?
<html>
<head>
<title>计时器</title>
<script type="text/javascript">
var mydate=new Date();
var myyear=mydate.getFullYear();
var mymonth=mydate.getMonth()+1;
var myday=mydate.getDate();
var myhour=mydate.getHours();
var myminute=mydate.getMinutes();
var mysecond=mydate.getSeconds();
while(1){
document.write(myyear+"年"+mymonth+"月"+myday+"日"+myhour+"时"+myminute+"分"+mysecond+"秒");
}
</script>
</head>
<body>
</body>
</html>