<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                ## setTimeout() 隔一段事件執行,并且只會執行一次. ``` <body> <input type="button" id="btn1" value="定時"> <input type="button" id="btn2" value="取消"> <script> var timeId; var btn1 = document.getElementById('btn1'); btn1.onclick = function () { //兩個參數 // 第一個參數是要執行的函數 // 第二個參數是間隔的時間,單位是毫秒. timeId = setTimeout(function () { console.log('定時任務'); }, 3000); } var btn2 = document.getElementById('btn2'); btn2.onclick = function () { //取消定時器的執行,傳入 clearTimeout(timeId); }; </script> ``` ## 案例 ``` <style> #tip { position: fixed; top: 50%; left: 50%; margin-left: -50px; width: 100px; height: 50px; background-color: skyblue; text-align: center; line-height: 50px; display: none; } </style> </head> <body> <input type="button" id="btn" value="刪除"> <div id="tip">刪除成功</div> <script> var btn = document.getElementById('btn'); btn.onclick = function () { var tip = document.getElementById('tip'); tip.style.display = 'block'; setTimeout(function () { tip.style.display = 'none'; },3000) } </script> ```
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看