I need to add a delay of about 100 miliseconds to my Javascript code but I don't want to use the setTimeout
function of the window
object and I don't want to use a busy loop.(我需要为我的Javascript代码添加大约100毫秒的延迟,但我不想使用window
对象的setTimeout
函数,我不想使用繁忙的循环。)
Does anyone have any suggestions?(有没有人有什么建议?)
ask by JGC translate from so
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…