javascript获取当前域名时间:2023-03-08 17:47:35 <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>