📜  等待 - Javascript 代码示例

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

代码示例1
function wait(timeout){
    return new Promise(resolve=>setTimeout(resolve, timeout));
}
await wait(