判断是否为ie8浏览器

/*判断是否为ie8浏览器*/
function Browser(){
var UA = navigator.userAgent,
isIE = UA.indexOf('MSIE') > -1,
v = isIE ? /d+/.exec(UA.split(';')[1]) : 'no ie';
if(v<=8){
alert(11);
window.removeEventListener("resize",function(){
myChart.resize();
});
}

}
Browser();
原文地址:https://www.cnblogs.com/yaomengli/p/8798032.html