摘要:
如果获取“当前”域名host = window.location.host;url=document.domain;url = window.location.href;location.search :获取URL中?后面的一段。取得完整url路径: 用以下代码可以完整研证结果:thisDLoc = document.location; thisURL = document.URL; thisHREF = document.location.href; thisSLoc = self.location.href;thisTLoc = top.location.href; thisPLoc = 阅读全文