<script language="javascript"> //获取域名 host = window.location.host; host2=document.domain; //获取页面完整地址 url = window.location.href; document.write("<br>host="+host) document.write("<br>host2="+host2) document.write("<br>url="+url) </script>
javascript(JS)获取当前域名 -云主机博士
![iproyal.png iproyal.png](https://pawns.iproyal.com/img/b/728.jpg)
原文链接:javascript(JS)获取当前域名 -云主机博士,转发请注明来源!
「javascript(JS)获取当前域名 -云主机博士」评论列表