标签:
1 function(ev) 2 { 3 var ev = ev || window.event; 4 if( ev.stopPropagation ) 5 { 6 ev.stopPropagation(); 7 } 8 else 9 { 10 ev.cancelBubble = true; 11 } 12 13 }
阻止冒泡和阻止默认事件——cancelBubble和stopPropagation
标签:
原文地址:http://www.cnblogs.com/douglasvegas/p/4736225.html