js判断是否是移动端进行域名跳转

<script type="text/javascript">
    if (/Android|webOS|iPhone|iPod|mobile|BlackBerry|ucweb|SymbianOS/i.test(navigator.userAgent)) {
        var url = window.location.href;
        try {
            window.location.href = "http://www.mixinnet.cn";
        } catch (e) {}
    }
</script>


评论