1 // Time zone 2 $ (Document) .ready ( function () { . 3 the setInterval (the showTime, 1000 ); . 4 function Timer (obj, TXT) {??? . 5 obj.text (TXT); ??? . 6 } . 7 function the showTime () { . 8 var Today = new new a Date (); . 9 var WEEKDAY = new new the Array (. 7 ) 10 WEEKDAY [0] = "Monday" . 11 WEEKDAY [. 1] = "Tuesday" 12 is WEEKDAY [2] = " Wednesday " 13 weekday[3]="星期四" 14 weekday[4]="星期五" 15 weekday[5]="星期六" 16 weekday[6]="星期日" 17 var y=today.getFullYear()+"年"; 18 var month=today.getMonth()+1+"月"; 19 var td=today.getDate()+"日"; 20 var d=weekday[today.getDay()-1]; 21 var h=today.getHours(); 22 var m=today.getMinutes(); 23 var s=today.getSeconds(); 24 if(h<10){ 25 H = "0" + H; 26 is } 27 IF (m <10 ) { 28 m = "0" + m; 29 } 30 Timer ($ ( "# the Y" ), Y); these lines is what is meant, there timer function specifically what role? 31 is Timer ($ ( "# MH" ), month The); 32 Timer ($ ( "# the TD" ), TD); 33 is Timer ($ ( "# D" ), D); 34 is Timer ($ ( "# H " ), H); 35 Timer ($ (" m # " ), m); 36 Timer ($ (" # S " ), S);