可以这样解决:遮罩层上的方法:@touchstart="hide($event)"hide(e){ console.log(e); this.show_flag=0; e.returnValue = false; console.log(e); },问题原因:是由于该事件的默认行为产生的,将returnValue设置为false就ok了。由此可以看出,事件的默认行为可以影响到即使不是嵌套关系的元素。
热门工具 换一换