首页
mac
it
登录
6mi
u
盘
搜
搜 索
it
JS实现sleep使页面等待
JS实现sleep使页面等待
mac
2022-06-30
86
/** * sleep函数 * @param {any} delay */ function sleep(delay) { var start = (new Date()).getTime(); while ((new Date()).getTime() - start < delay) { continue; } }
转载于:https://www.cnblogs.com/JentZhang/p/11435331.html
相关资源:JAVA上百实例源码以及开源项目
转载请注明原文地址: https://mac.8miu.com/read-6426.html
最新回复
(
0
)