为什么时间不能同时显现出来???求指点,,,
<script type="text/javascript">
var mydate=new Date();
var myyear=mydate.getFullYear();
document.write("年份:"+myyear+"<br/>");
//当前时间为:
document.write("当前时间为:"+"<br/>");
document.write("星期:"+mydate.getDay()+'<br/>');
document.write("月份:"+mydate.getMonth()+'<br/>');
document.write("日期:"+mydate.getDate()+"<br/");
document.write("年份:"+mydate.getFullYear()+'<br/>' );
document.write("时:"+mydate.getHours()+'<br/>');
document.write("分:"+mydate.getMinutes()+'<br/>');
document.write("秒:"+mydate.getSeconds()+'<br/>');
</script>