用JS获取当前域名并判断获取域名host = window.location.hosthost2=document.domainif(host!="xxx.com") alert("illegal")点击公众号设置,功能2023-03-04JavaScript80