请教,没有按照互动时间定时显示
var attime;
function clock(){
var time=new Date();
attime=time.getHours() + ":" + time.getMinutes() + ":" + time.getSeconds();
document.getElementById("clock").value = attime;
}
setInterval(clock,10000);
var attime;
function clock(){
var time=new Date();
attime=time.getHours() + ":" + time.getMinutes() + ":" + time.getSeconds();
document.getElementById("clock").value = attime;
}
setInterval(clock,10000);
2022-04-29
举报