Cannot read property 'target' of undefined 错误提示 chrome浏览器
this.el.addEventListener('click',function(event){});
if( event.target !==this.el){ //此句报错
self.triggerSwitch();
}
请问该怎么解决
this.el.addEventListener('click',function(event){});
if( event.target !==this.el){ //此句报错
self.triggerSwitch();
}
请问该怎么解决
2017-01-27
举报