MUI 阻止冒泡 亲测有效 阻止弹窗冒泡到document或者遮
2019-07-25 本文已影响0人
戬谷stone
MUI 阻止冒泡到 document (或者其余父级元素)
mui( '父级' ).on('tap','当前点击对象',function(e){
e.stopPropagation(); // 阻止冒泡
});
防止 <div class="box"> </div> 冒泡到底层的页面 document 或者遮罩层
mui(document).on('tap','.box',function(e){
e.stopPropagation();
});