1:setTimeout(
function
(){alert(
"Hello world"
);},10000);
2:
script> // xigae ,2009-14-17 var psto = window.setTimeout;//保留系统原方法句柄 window.setTimeout = function(fun,tCount) { if(typeof fun =='function') { var args = Array.prototype.slice.call(arguments,2);//截取从第三个参数开始的所有参数 var funPushP = function () { return fun.apply(null,args);//把获取的参数传递给 传入的函数句柄 }; return psto(funPushP,tCount); } return psto(fun,tCount); } function test() { alert(arguments[0]); } function TestSTOExtend() { setTimeout(test,2000,'may be is ok !'); }3:
<script defer="defer">
alert("页面加载完我才执行的")
</script>