关于ios滑动局部区域但拖动整个页面的问题

220 阅读1分钟

首先可以知道当前用的应该是touchstart  touchend touchmove这个几个方法

这个问题很好办

直接在touchmove里添加e.preventDefault()即可