var userAgent = navigator.userAgent;
var isChrome = (userAgent.indexOf("Chrome") > -1 || userAgent.indexOf("Safari") > -1)&&userAgent.indexOf("Edge") == -1&&userAgent.indexOf("QQBrowser") == -1 ;
if(isChrome){
$('video').remove();
}
var userAgent = navigator.userAgent;
var isChrome = (userAgent.indexOf("Chrome") > -1 || userAgent.indexOf("Safari") > -1)&&userAgent.indexOf("Edge") == -1&&userAgent.indexOf("QQBrowser") == -1 ;
if(isChrome){
$('video').remove();
}
本文标题:判断浏览器类型
本文链接:https://www.haomeiwen.com/subject/mtofvftx.html
网友评论