运行如下: thisDLoc = document.location;
thisURL = document.URL;
thisHREF = document.location.href;
thisSLoc = self.location.href;
thisTLoc = top.location.href;
thisPLoc = parent.document.location;
thisTHost = top.location.hostname;
thisHost = location.hostname;
thisURL:[/js/js获取url.html]
thisHREF:[/js/js获取url.html]
thisSLoc:[/js/js获取url.html]
thisDLoc:[/js/js获取url.html]
thisTLoc:[/js/js获取url.html]
thisPLoc:[/js/js获取url.html]
thisTHost:[]
thisHost:[]
thisHPage:[js获取url.html]
thisUPage:[js获取url.html]
如果觉得《html当前域名 js取得当前url javascript获取当前页面url值 js获取域名》对你有帮助,请点赞、收藏,并留下你的观点哦!