📜  settimeout js - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:30.950000             🧑  作者: Mango

代码示例6
//You can also send a argument along with a timed call
setTimeout("your_fun('bob');", 1000)

function your_fun(name) { //Prints "Hello world! bob" after one second
    alert("Hello world! " + name);
}