var ev = window.event || arguments.callee.caller.arguments[0]; if (window.event) ev.cancelBubble = true; else { ev.stopPropagation(); }
将此代码段放在子标签的onclick事件中
var ev = window.event || arguments.callee.caller.arguments[0]; if (window.event) ev.cancelBubble = true; else { ev.stopPropagation(); }
将此代码段放在子标签的onclick事件中
转载于:https://www.cnblogs.com/kwm672225801/p/7794501.html