当前位置: 代码迷 >> Java Web开发 >> js延迟加载?解决方法
  详细解决方案

js延迟加载?解决方法

热度:3616   发布时间:2013-02-25 21:22:47
js延迟加载??
<html>
<head>
<title>direct</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<script type="text/javascript">

function getsys() {
alert("初次访问系统,点击OK!");//这里需要拦一下,否则走的太快???? document.getElementById("ip").value = SysInfo.ipstr;

}
</script>
</head>

<body onload="getsys()"> //这里怎么延迟加载一下??? <form name="form" action="login" method="post">
<input type="hidden" name="currPage" id="currPage" />
<input type="hidden" name="macIp" id="macIp" />
<input type="hidden" name="ip" id="ip" />

</form>
</body>
</html>

------解决方案--------------------------------------------------------
setTimeout();
  相关解决方案
本站暂不开放注册!
内测阶段只得通过邀请码进行注册!