其他都成功了,就阻止冒泡不成功,谁能告诉我为什么不行
eventUtill.stopPropagation(e);
stopPropagation:function(event){
if (event.stopPropagation) {
event.stopPropagation();
} else{
event.cancelBubble=true;
};
}
请附上源代码,我将为你一一查漏。
eventUtil.addHandler(go,"click",function(e){eventUtill.stopPropagation(e);}
看一下 function(e)里的e有没有写,把事件参数传入函数
eventUtill.stopPropagation(e);
这里是e
stopPropagation:function(event){
这里是event,没对应起来
if (event.stopPropagation) {
event.stopPropagation();
} else{
event.cancelBubble=true;
};
}