<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>

                企業??AI智能體構建引擎,智能編排和調試,一鍵部署,支持知識庫和私有化部署方案 廣告
                # location 對象   window.location 對象用于獲得當前頁面的地址URL,并把瀏覽器重定向到新的頁面。 ## location對象的屬性 * location.hostname 返回web主機的域名 * location.pathname 放回當前頁面的路徑和文件名 * location.port 放回web主機的端口 * location.protocol 返回所使用的web協議 [http|https] * location.href 屬性返回當前頁面的URL * location.assign() 方法加載新的文檔 ~~~ <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>window.location對象</title> </head> <body> <button id="btn">按鈕</button> <script> function getLoc(){ console.log( window.location.hostname); //返回web主機域名 console.log( window.location.pathname); //返回web主機名 console.log( window.location.port); //放回web主機的端口 console.log( window.location.protocol); //返回所使用的web協議 console.log( window.location.href); //屬性返回當前頁面的URL // location.assign("https://www.baidu.com"); // 加載新的文檔 } var oBtn = document.getElementById('btn'); oBtn.addEventListener("click",getLoc); </script> </body> </html> ~~~
                  <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>

                              哎呀哎呀视频在线观看