var testFunction=function(){
console.log("guoyansi");
}
var timer=setInterval(testFunction,1000);
timer.unref();//Cancel the call of setTimeout and setInterval functions
timer.ref();//Restore the calls to setTimeout and setInterval functions
Isn’t it super simple? If you still don’t understand, please let go of javascript~
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn