我有以下情况:
setTimeout("alert('this alert is timedout and should be the first');", 5000);
alert("this should be the second one");
我希望在setTimeout
之后执行该代码,因为在setTimeout
之后的代码并不是我自己的代码,所以我不能把它放到setTimeout
函数中调用...
有什么解决方法吗?