JS 延迟加载
2021-04-15 14:28
标签:date() UNC span return cti nbsp class mil turn JS 延迟加载 标签:date() UNC span return cti nbsp class mil turn 原文地址:https://www.cnblogs.com/chenyanbin/p/12361443.html function sleep(numberMillis) {
var now = new Date();
var exitTime = now.getTime() + numberMillis;
while (true) {
now = new Date();
if (now.getTime() > exitTime)
return;
}
}