js动态时间显示源:http://josephmok.iteye.com/blog/781558评:script???????document.write(span?idt
js动态时间显示
源: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>??
?
