📜  javascript 停止延迟 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:35.360000             🧑  作者: Mango

代码示例1
function example(){
    console.log("this is an example"); 
}

let functionID = setTimeout(example, 100); //the delay time is set to 100ms
clearTimeout(functionID); //cancel the setTimeout()