js location.search 用法詳解

JS中location.search什麼意思?下面17javascript跟你們詳細介紹一下: 設置或獲取 網頁地址跟在問號後面的部分 當以get方式在url中傳遞了請求參數時,能夠利用location的search屬性提取參數的值,下面的代碼把參數的名稱和對應的值存儲在2個數組中。 <script> function test() { var url=window.location.search
相關文章
相關標籤/搜索