javascript捕获事件event
var e = e ? e : window.event; window.event ? window.event.cancelBubble = true : e.stopPropagation();
<button type="button" onclick="showInfo()">button</button> <script type="text/javascript"> function showInfo(){ var e = e ? e : window.event; window.event ? window.event.cancelBubble = true : e.stopPropagation(); } </script>
QQ交流群:15129679