示例为压缩版echarts.min.js

1. 增加代码

var isDomLevel2 = (typeof window !== ‘undefined’) && !!window.addEventListener;

2.修改函数 Le Pe (注意大小写)

function Pe(t,e,n,i){
if(isDomLevel2){t.addEventListener(e,n,i);}else{t.attachEvent(‘on’+e, n);}
}
function Le(t,e,n,i){
if(isDomLevel2){t.removeEventListener(e,n,i);}else{t.detachEvent(‘on’+e, n);}
}

3.修改函数Pm

Pm=function(t){
if(isDomLevel2){
t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0;
}else{
t.returnValue = false;
t.cancelBubble = !0;
}
}

 

作者 admin

百度广告效果展示