用JS获取当前域名并判断获取域名host = window.location.hosthost2=document.domainif(host!="xxx.com") alert("illegal")获取当前请求路径va2023-02-28JavaScript280