function sleep(numberMillis) { var now = new Date(); var exitTime = now.getTime() + numberMillis; while (true) { now = new Date(); if (now.getTime() > exitTime) return; } } 来源:https://www.cnblogs.com/chenyanbin/p/12361443.html 标签 延迟加载 date var js