用JS获取当前域名并判断获取域名host = window.location.hosthost2=document.domainif(host!="xxx.com") alert("illegal")如下代码可以实现,你2023-02-20JavaScript190