js阻止事件冒泡

来源:互联网 发布:苹果悬浮时间软件 编辑:程序博客网 时间:2024/06/06 01:07
function stopHandler(event){    window.event?window.event.cancelBubble=true:event.stopPropagation();  }  // function clickParent(event) {//     //stopHandler(event);//     alert('parent is click');// }

0 0
原创粉丝点击