如何在点击遮罩时不关闭popover弹出层
- 发布:2018-08-27 16:52
- 更新:2019-11-19 18:54
- 阅读:6768
优乐美 - z
window.addEventListener('tap', function(e) {
e.target.className == 'mui-backdrop mui-active' && e.stopPropagation();
},true)
ahkoky - 从此吾剑将随汝同在,汝之命运将与吾共存
window.addEventListener('tap', function(e) {
e.target.className == 'mui-backdrop mui-backdrop-action mui-active' && e.stopPropagation();
},true);
y***@qq.com
请问,我有两个popover弹出层,一个要点击遮罩可以关闭弹出层,一个不能点击遮罩关闭弹出层要怎么弄呢?
2021-11-28 00:56