<script type="text/javascript">var enable = 0;
today = new Date();
var day;
var date;
var time_start = new Date();
var clock_start = time_start.getTime();
if (today.getDay() == 0) day = "星期日"
if (today.getDay() == 1) day = "星期一"
if (today.getDay() == 2) day = "星期二"
if (today.getDay() == 3) day = "星期三"
if (today.getDay() == 4) day = "星期四"
if (today.getDay() == 5) day = "星期五"
if (today.getDay() == 6) day = "星期六"
yr = today.getYear();
if (yr < 1000)
yr += 1900;
date = yr + "年" + (today.getMonth() + 1) + "月" + today.getDate() + "日 ";
document.write("<span style='font-size: 9pt;color:#3B576C;'>" + date);
document.write(day + "</span>");</script>
显示系统时间
![](https://img-home.csdnimg.cn/images/20240711042549.png)