标签:style class blog c code java
<input type="text" id="showtime" redayonly="redayonly" /> <script> function nowGetTime(){ var date=new Date(); document.getElementById("showtime").value=date.getFullYear()+"-"+(date.getMonth()+1)+"-"+date.getDate()+" "+date.getHours()+":"+date.getMinutes()+":"+date.getSeconds(); } window.setInterval("nowGetTime()",1000); </script>
标签:style class blog c code java
原文地址:http://www.cnblogs.com/flase/p/3742583.html