代码
 <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> 

 

相关文章:

  • 2021-11-02
  • 2021-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-05-31
  • 2021-07-30
  • 2021-08-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案