均哥分享

纯html实现多域名跳转

2020-04-14 13:33:45 admin 37

实现案例:


<script type="text/javascript">
host = window.location.host;
if (host=="test.guodejun.com" )
{
window.location.href='http://test.guodejun.com/test/index.html';
}
if (host=="shop.guodejun.com")
{
window.location.href='http://xxx.guodejun.com/shop/?f';
}
</script>

首页
分享
日志
联系