📅  最后修改于: 2022-03-11 15:04:01.427000             🧑  作者: Mango
代码示例1
var keepCalling = true;
setTimeout(function () {
keepCalling = false;
}, 10000);
while ( keepCalling ) {
// do something
}