js判断360浏览器

xiaoxiao2021-02-27  435

随着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;          } 

转载请注明原文地址: https://www.6miu.com/read-3048.html

最新回复(0)