摘要: HTML Code:JS Code:function changeClock() { var d = new Date(); var mm = (d.getMinutes() < 10) ? ('0' + d.getMinutes()):d.getMinutes(); //条件运算符给小于10的时间前补0 var ss = (d.getSeconds() < 10) ? ('0' + d.getSeconds()):d.getSeconds(); document.getElementById("clock").innerHTML 阅读全文
posted @ 2014-03-18 15:51 屋大明 阅读(290) 评论(0) 推荐(0) 编辑