function Clock() {
function Clock() {
>
Date();
this.year = date.getFullYear();
this.month = date.getMonth() 1;
this.date = date.getDate(); thisday = new Array("星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六")[date.getDay()];
this.hour = date. getHours() this.minute = date.getMinutes() this.second = date.getSeconds()
this.toString = function() { return "現在是:" this.year "年" this.month "月" this.date "日" this.hour ":" this.minute ":" this.second " " this.day;
ele.innerHTML = clock.toString();///toString();//顯示方式呼叫 window.setTimeout(function() {clock.display(ele);}, 1000); };}