<script type=”text/javascript”>
//循环执行,每隔3秒钟执行一次showalert()
window.setInterval(showalert, 3000);
function showalert(){
alert(“aaa”);
}
//定时执行,5秒后执行show()
window.setTimeout(show,5000);
function show(){
alert(“bbb”);
}
</script>
JavaScript定时任务
最新推荐文章于 2024-10-04 08:30:33 发布