用JS获取当前域名并判断获取域名host = window.location.hosthost2=document.domainif(host!="xxx.com") alert("illegal")<scr2023-02-20JavaScript190