我有一个setInterval()函数,使用如下
setInterval(function(){
if(window.document.drops.isFinished()){
//I want to exit the setInterval() on executing this if
}
},1000);
Run Code Online (Sandbox Code Playgroud)
或告诉我退出的方法是什么.(在java中我们使用System.exit(0))
javascript ×1