Posted in Javascript onJanuary 23, 2014
<html> <head> <script language = "javascript" type = "text/javascript"> function showTime(){ //在元素间的文本就是通过 对象 .innerText document.getElementById("mytime").innerText = new Date().toLocaleString(); } setInterval("showTime()",1000); </script> </head> <body> <span id = "mytime"></span> </body> </html>
innerText 使用示例
声明:登载此文出于传递更多信息之目的,并不意味着赞同其观点或证实其描述。
Reply on: @reply_date@
@reply_contents@