js判断360浏览器

随着360的更新,360浏览器和其他浏览器的判断越来越困难,在网上搜了半天,都是使用jquery.ua或者jQuery.browser,或者 window.navigator.userAgent.indexOf('360')!=-1,然而并没有什么卵用,兼容模式内核使用的是ie,怎么获取都是ie的信息

只能使用下面的方式:

function bro(){  
            var is360 = false;  
            if((window.navigator.userProfile+'')=='null'){  
                is360 = true;  
            }  
          return  is360; 
        } 

猜你喜欢

转载自blog.csdn.net/createideas/article/details/71168845