下面两种方法是一样的 <div th:text="${#httpServletRequest.getRequestURL() +'?'+ #httpServletRequest.getQuer ...
下面两种方法是一样的 <div th:text="${#httpServletRequest.getRequestURL() +'?'+ #httpServletRequest.getQuer ...
['ORIG_PATH_INFO']); //当前页面名称 $URL['DOMAIN'] = $_SERV ...
...
javascript实现: ...
...
javascript实现: ...
测试网址:http://afish.cnblogs.com/p/3941211.html?id=1 ...
JavaScript 实现top.location.href 顶级窗口的地址this.location.href 当前窗口的地址document.URL PHP实现 #测试网址: http://localhost/blog/testurl.php?id=5 //获取域名或主机地址 echo ...