IE11浏览器提示“对象不支持attachEvent”
就一登陆页面,我还没写JS代码呢,一运行就提示这个!
用VS调试的时候看到这个:
我不明白怎么出来的是迅雷的一个URL?
有怎么解决方法?
用VS调试的时候看到这个:
var Deal = function(){
DefineVUS();
VUS.Init();
if(VUS.vusbho){
VUS.vusbho.JsCall("TsLog", "JsLog: define and init js");
if(VUS.sVerType=="PRODUCT_RELEASE"){
window.onerror = function(){return true;}
}
var loader = new VUS.DOMLoader();
loader.loadJS([ 'http://conf.xmp.xunlei.com/vus/vipjs/vus_utility.js',
'http://conf.xmp.xunlei.com/vus/vipjs/vus_config.js',
'http://conf.xmp.xunlei.com/vus/vipjs/vus_finder.js']);
window.attachEvent("onload", function(){
VUS.vusbho.JsCall("TsLog", "JsLog: onload come");
if(document.URL.indexOf("http://")==0){
if(document.URL.indexOf("s.weibo.com")>0){
setTimeout(function() { VUS.FinderUrl(); }, 2000);
}
}
}, false);
}我不明白怎么出来的是迅雷的一个URL?
有怎么解决方法?
...全文
相关推荐
IE11没有window.attachEvent方法处理方法
IE11没有window.attachEvent方法处理方法,文档中有详细说明
javascript attachEvent和addEventListener使用方法
attachEvent与addEventListener区别适应的浏览器版本不同,同时在使用的过程中要注意
attachEvent和addEventListener 使用方法
NULL 博文链接:https://zhang-yingjie-qq-com.iteye.com/blog/321486
self.attachevent is not a function的解决方法
注意原因: window对象的attachEvent方法只在IE浏览器中有效,其它浏览器不支持这个方法,所以报错。 self.attachevent is not a function其实就是以前的代码, 没有做chrome、firefox浏览器兼容导致。 self.attachEvent("onblur",function(){dd.style.display="none"}) 上面的代码在chrome浏览器肯定会报错的。 因为chrome浏览器绑定事件不支持attachevent而支持addEventListener。 下面是临时解决方法: if(!self.addEventListe
attachEvent的使用方法与传递参数[IE|firefox]|angluo-javascript-37392.pdf
attachEvent的使用方法与传递参数[IE|firefox]


