JS如何实现sleep By admin | 2022-01-19 阅读次数: Sleep use JSfunction sleep(delay) { var start = (new Date()).getTime(); while ((new Date()).getTime() - start < delay) { continue; } }