js 判断浏览器是否为360

2025-03-14 00:44:01
推荐回答(2个)
回答1:

360安全浏览器主要是使用了IE的内核。360只是个壳儿,判断不出来。只能判断到是不是IE的内核。用

if(window.navigator.userAgent.indexOf("MSIE") > -1){
    //是IE内核
}else{
    //不是IE内核
}

回答2:

function checkIs360(){  
    var is360 = false;  
    var isIE = false;  
    if (window.navigator.appName.indexOf("Microsoft") != -1){  
        isIE= true;
    }  
    if(isIE&&(window.navigator.userProfile+'')=='null'){  
        is360 = true;
    }  
    if(is360)return true;
    else return false;
}