Bootstrap

html页面执行时间代码,网页时间的代码(能运行)

function tick() {

var today=new Date();

var month=today.getMonth()+1;

var year, date, hours, minutes, seconds;

var intHours, intMinutes, intSeconds;

var week=new Array()

week[0]="星期天 ";

week[1]="星期一 ";

week[2]="星期二 ";

week[3]="星期三 ";

week[4]="星期四 ";

week[5]="星期五 ";

week[6]="星期六 ";

intHours = today.getHours();

intMinutes = today.getMinutes();

intSeconds = today.getSeconds();

year=today.getFullYear();

date=today.getDate();

var time;

if (intHours == 0) {

hours = "00:";

}

else if (intHours < 10) {

hours = "0" + intHours+":";

}

else { <

;