最佳答案
我试图用 setTimeout
编写一个简单的代码,但是 setTimeout
不会等待它应该等待的时间,而且代码会立即执行。我做错了什么?
setTimeout(testfunction(), 2000);