html文件:<p id="clock"></p><input type="button" value="dianji" onclick="count()">js文件:function count(){??? var time=new Date();??? var attime= time.getHours()+"."+time.getMinutes()+"."+time.getSeconds() ;??? document.getElementById("clock").innerHTML=attime;}var attime = setInterval(count(),100);
我這段代碼要加點(diǎn)什么才能實(shí)現(xiàn)點(diǎn)擊按鈕出現(xiàn)動(dòng)態(tài)時(shí)間的效果
哈哈哈蜜瓜
2016-09-20 11:31:36