js獲取當前地址JS獲取當前URL的示例代碼_javascript技巧
來源:懂視網
責編:小采
時間:2020-11-27 21:20:17
js獲取當前地址JS獲取當前URL的示例代碼_javascript技巧
js獲取當前地址JS獲取當前URL的示例代碼_javascript技巧: 代碼如下: thisURL = document.URL; thisHREF = document.location.href; thisSLoc = self.location.href; thisDLoc = document.location; strwrite = thisURL: [ + thisURL + ] strwrite +=
導讀js獲取當前地址JS獲取當前URL的示例代碼_javascript技巧: 代碼如下: thisURL = document.URL; thisHREF = document.location.href; thisSLoc = self.location.href; thisDLoc = document.location; strwrite = thisURL: [ + thisURL + ] strwrite +=

代碼如下: