Commit ccedbda4 by 冷斌

fix bug

parent d8252995
...@@ -343,10 +343,16 @@ ...@@ -343,10 +343,16 @@
function stopBubbling(e) { function stopBubbling(e) {
e = window.event || e; e = window.event || e;
if (e.stopPropagation) { if(e.stopPropagation){
e.stopPropagation(); //阻止事件 冒泡传播 e.stopPropagation();
} else { }else{
e.cancelBubble = true; //ie兼容 e.cancelBubble = true;
}
if(e.preventDefault){
e.preventDefault();
}else{
e.returnValue= false;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment