<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>
以上就是js获取当前域名的详细内容,更多关于js获取当前域名的资料请关注九品源码其它相关文章!
本站已有295人使用QQ登录你即将成为第296位