久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      javascript怎么進(jìn)行延遲跳轉(zhuǎn)

      javascript中可以利用setTimeout()函數(shù)配合“l(fā)ocation.href”屬性來實現(xiàn)延遲跳轉(zhuǎn),語法“setTimeout(function(){window.location.href='跳轉(zhuǎn)地址';},延遲毫秒數(shù));”。

      javascript怎么進(jìn)行延遲跳轉(zhuǎn)

      本教程操作環(huán)境:windows7系統(tǒng)、javascript1.8.5版、Dell G3電腦。

      javascript進(jìn)行延遲跳轉(zhuǎn)

      在javascript中,可以利用setTimeout()方法配合window.location.href屬性來實現(xiàn)延遲跳轉(zhuǎn)。

      實現(xiàn)代碼:

      <!DOCTYPE html>   <html>   <head>  <meta charset="utf-8"> <title>JavaScript</title>   </head>   <html> <body> <p>5s后跳轉(zhuǎn)跳轉(zhuǎn)</p> <script type="text/javascript"> setTimeout(function(){ 	window.location.href='https://www.php.cn/'; },5000);  //  function jump(){ //     window.location.href='https://www.php.cn/'; // } // setTimeout(jump,5000); </script> </body> </html>

      javascript怎么進(jìn)行延遲跳轉(zhuǎn)

      說明:

      setTimeout() 方法用于在指定的毫秒數(shù)后調(diào)用函數(shù)或計算表達(dá)式。

      提示:

      • 1000 毫秒= 1 秒。

      • 如果你只想重復(fù)執(zhí)行可以使用 setInterval() 方法。

      • 使用 clearTimeout() 方法來阻止函數(shù)的執(zhí)行。

      【推薦學(xué)習(xí):javascript高級教程】

      贊(0)
      分享到: 更多 (0)
      網(wǎng)站地圖   滬ICP備18035694號-2    滬公網(wǎng)安備31011702889846號