我写了这样一段代码,但是setTimerOut()没有反应,它提示说对象不支持该方法或者属性,请大侠帮忙看一下:<html>
<head>
<title>test</title>
<script language="javascript">
function hello(){
alert("ni hao");
}
function test() {
alert("this is a test");
}
document.writeln("</head>");
document.writeln('<body onload="hello()">');
window.setTimeOut("test()",1000);
</script>
</html>
<head>
<title>test</title>
<script language="javascript">
function hello(){
alert("ni hao");
}
function test() {
alert("this is a test");
}
document.writeln("</head>");
document.writeln('<body onload="hello()">');
window.setTimeOut("test()",1000);
</script>
</html>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货