Reactjs 中onClick阻止冒泡事件的方法:

    1. <a href="#" onClick={(event) => {
    2. e.stopPropagation();
    3. e.nativeEvent.stopImmediatePropagation();
    4. }}>