<div class="box" onclick="box1()">
<div class="box" onclick="box()"></div>
</div>
Title
function box1(e){
alert('2222');
}
function box(e){
var ev=e || window.event;
alert('b');
ev.stopPropagation()
}
<div class="box" onclick="box1()">
<div class="box" onclick="box()"></div>
</div>
Title
function box1(e){
alert('2222');
}
function box(e){
var ev=e || window.event;
alert('b');
ev.stopPropagation()
}
本文标题:父容器点击影响子容器点击时间
本文链接:https://www.haomeiwen.com/subject/irdddxtx.html
网友评论