源:http://josephmok.iteye.com/blog/781558
评:
- <script>
- document.write("<span id=time></span>")
- setInterval(function(){
- with(new Date) {
- time.innerText=getYear()+"年"+(getMonth()+1)+"月"+getDate()+"日 星期"+
- "日一二三五六".charAt(getDay())+""+getHours()+":"+getMinutes()+":"+getSeconds()
- },1000) }
- </script>