一次性定时器如何实现循环定时器效果!!!恍然大悟

来源:互联网 发布:vip域名备案 编辑:程序博客网 时间:2024/05/29 15:09
<!DOCTYPE html><html lang="en"><head>    <meta charset="UTF-8">    <title>一次性定时器实现循环效果</title></head><body></body><script>    function show() {        console.log("伪循环定时器");        setTimeout(show,1000);    }    setTimeout(show,1000);</script></html>