【发布时间】:2015-11-23 17:57:46
【问题描述】:
我想放置一个命令,例如让我改变点击后的等待时间
var myVar;
function myFunction() {
myVar = setTimeout(alertFunc, 3000);
}
function alertFunc() {
alert("Hello!");
}
<p>Click the button to wait 3 seconds, then alert "Hello".</p>
<button onclick="myFunction()">Try it</button>
【问题讨论】:
-
你有什么问题?
标签: javascript settimeout autofill