js判断域名跳转-判断用户来路域名实现不同来路到指定页面
下面直接贴代码:
<script type="text/javascript"> host = window.location.host; if (host=="adminwl.com" || host=="www.adminwl.com" ) { window.location.href=‘http://www.adminwl.com‘; } if (host=="来路域名" || host=="来路域名") { window.location.href=‘你想展现给用户的网址或目录‘; } </script>