时间:2021-07-01 10:21:17 帮助过:40人阅读
<script>
document.write((zjd=new Date()).getFullYear()+"年"+(zjd.getMonth()+1)+"月"+zjd.getDate() + "日 星期"+"日一二三四五六".charAt(zjd.getDay())+ " ");
</script>
</td>
<td width="373" id="currenttime">
<script>
setInterval(function(){
var date = new Date()
document.getElementById("currenttime").innerHTML = date.toLocaleTimeString();
}, 1000);
</script>
</td>