function sleep(d){ for(var t = Date.now();Date.now() - t <= d;); } sleep(5000); //当前方法暂停5秒
博客园 © 2004-2025 浙公网安备 33010602011771号 浙ICP备2021040463号-3