📜  javascript代码示例中的延迟

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

代码示例6
wait(ms) {
        return new Promise(resolve => setTimeout(resolve, ms));
 }