<!DOCTYPE HTML><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>定时器</title><script type="text/javascript"> function clock(){ for( var i=5 ; i<=1 ; i--) { document.getElementById("clock").value = i;} } } setInterval(clock,1000);</script></head><body><form><input type="text" id="clock" size="50" /></form></body></html>
3 回答
qq_面对疾风吧_03654725
TA贡献1条经验 获得超0个赞
setInterval(fn(),1000);
function fn() {
alert('李狗蛋儿');
return function(){
alert('二狗子');
}
}
添加回答
举报
0/150
提交
取消