📅  最后修改于: 2022-03-11 15:02:35.360000             🧑  作者: Mango
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()