1.第一种方法
<table>
<tr>
<td>当前时间:</td>
<td id=CurrentTime></td>
[removed]
function changetime(){
var ary = [星期日,星期一,星期二,星期三,星期四,星期五,星期六];
var Timehtml = document.getElementById('CurrentTime');
var date = new Date();
Timehtml[removed] = ''+date.toLocaleString()+'