日期:2014-05-16 浏览次数:20485 次
<script type=”text/javascript”> //循环执行,每隔3秒钟执行一次showalert() window.setInterval(showalert, 3000); function showalert() { alert(“aaaaa”); }
window.setTimeout(show,5000); function show() { alert(“bbb”); } </script>
<script type=”text/javascript”> //循环执行,每隔3秒钟执行一次 showalert() window.setInterval(function(){ showalert(“aaaaa”); }, 3000); function showalert(mess) { alert(mess); } //定时执 行,5秒后执行showalert() window.setTimeout(function(){ showalert(“bbbbbb”); },5000); </script>详细出处参考:http://www.jb51.net/article/23863.htm