<script>  
function IsPC() {
    var userAgentInfo = navigator.userAgent;
    var Agents = ["Android", "iPhone",
                "SymbianOS", "Windows Phone","iPod"];
    var flag = true;
    for (var v = 0; v < Agents.length; v++) {
        if (userAgentInfo.indexOf(Agents[v]) > 0) {
            flag = false;
            break;
        }
    }
    return flag;
}

if(!IsPC()){
    window.location="移动端网址";
}
</script>
<script>
(function(){
    var sUserAgent = navigator.userAgent;
    if (sUserAgent.indexOf('Android') > -1 && sUserAgent.indexOf('Mobile') > -1 || sUserAgent.indexOf('iPhone') > -1 || sUserAgent.indexOf('iPod') > -1 || sUserAgent.indexOf('Symbian') > -1 || sUserAgent.indexOf('IEMobile') > -1){
          location.href = '移动端网址';
    }
    else{
    }
})();
</script>

 

富强、民主、文明、和谐、自由、平等、公正、法治、爱国、敬业、诚信、友善