<script>
setTimeout("alert('我是setTimeout, 仅出来一次')", 2000);
setInterval("alert('我是Interval, 每5秒一次')",5000);
</script>
setTimeout("alert('我是setTimeout, 仅出来一次')", 2000);
setInterval("alert('我是Interval, 每5秒一次')",5000);
</script>