setInterval(方法名,1000)间隔一秒调用一次
setTimeOut(方法名,1000)一秒后调用
//运行
function start(){
myt1=window.setInterval("a()",1000);
clock=window.settimeout("timer1()",102)
}
//取消
function stop(){
window.clearInterval(myt1);
window.cleartimeout(clock);
}
setTimeOut(方法名,1000)一秒后调用
//运行
function start(){
myt1=window.setInterval("a()",1000);
clock=window.settimeout("timer1()",102)
}
//取消
function stop(){
window.clearInterval(myt1);
window.cleartimeout(clock);
}