I have the following scenario:
setTimeout("alert('this alert is timedout and should be the first');", 5000);
alert("this should be the second one");
I need the code after the setTimeout
to be executed after the code in the setTimeout is executed. Since the code that comes after the setTimeout
is not code of my own I can't put it in the function called in the setTimeout...
Is there any way around this?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…