我想阻止点击事件冒出来.因此我在我的代码中添加了e.stopPropagation().我总是在控制台出错,说:Uncaught TypeError: e.stopPropagation is not a function
在reactjs中设置stopPropagation的正确方法是什么?
handleClick: function(index, e) {
e.stopPropagation();
...
},
Run Code Online (Sandbox Code Playgroud) reactjs ×1