JS 判断 IE11 浏览器
if ((navigator.userAgent.indexOf('MSIE') >= 0) || (navigator.userAgent.indexOf('Trident') >= 0)){
// IE
alert("IE");
xmlDoc=new ActiveXObject("Microsoft.XMLDOM");
}else if(document.implementation && document.implementation.createDocument){ //非 IE
alert("other");
xmlDoc=document.implementation.createDocument("","",null);
}else{
alert('can not create XML DOM object, update your browser please...');
}
参考地址:http://www.ithome.com/html/ie/48082.htm