出现穿透的前提:上层绑定touch事件,下层绑定click事件。
解决方案:touchend绑定:
e.preventDefault();
$(下层).css("pointer-events","none");
出现穿透的前提:上层绑定touch事件,下层绑定click事件。
解决方案:touchend绑定:
e.preventDefault();
$(下层).css("pointer-events","none");
转载于:https://www.cnblogs.com/rellame/p/5318810.html