React中阻止事件冒泡

  1. stopPropagation: function(e){  
  2.     e.stopPropagation();  
  3.     e.nativeEvent.stopImmediatePropagation();  

你可能感兴趣的:(Web前端)