📅  最后修改于: 2022-03-11 15:01:16.150000             🧑  作者: Mango
代码示例6
// wait 1000ms and then run func()
let myTimeout = setTimeout(func, 1000);
// cancel the timeout
clearTimeout(myTimeout);