if (topTemp <= (distenceInit - distence)) {
clearTimeout(t); //——这个怎么不起作用啊???
console.debug("end if,truely end......");
return
}
结束执行,要不后面的 t = setTimeout(repeat, speed);又执行了
clearTimeout(t); //——这个怎么不起作用啊???
console.debug("end if,truely end......");
return
}
结束执行,要不后面的 t = setTimeout(repeat, speed);又执行了
return
}