<html> <script> function getDate(){ var d,s,t; d = new Date(); s = d.getFullYear().toString()+"-"; t = d.getMonth()+1; s += (t>9?"":"0")+t+"-"; t = d.getDate(); s += (t>9?"":"0"…
网页上显示时间 代码如下: <TABLE> <TR> <TD><span id="localtime"></span> <script> function showLocale(objD) { var dn, str; var hh = objD.getHours(); var mm = objD.getMinutes(); var ss = objD.getSeconds(); str = (objD.getMo…