/*判断是否为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