手机页面touch拉取页面效果

手机页面touch拉取页面效果 需要下载touchSwipe。 移动端触屏滑动的效果其实就是图片轮播,在PC的页面上很好实现,绑定click和mouseover等事件来完成。但是在移动设备上,要实现这种轮播的效果,就需要用到核心的touch事件。处理touch事件能跟踪到屏幕滑动的每根手指。 touch事件如下: touchstart:手指放到屏幕上时触发 touchmove:手指在屏幕上滑动式触发 touchend:手指离开屏幕时触发 touchcancel:系统取消touch事件的时候触发 <script> $(“body”).on(“touchstart”, function(e) {         //e.preventDefault();         startX = e.originalEvent.changedTouches[0].pageX,         startY = e.originalEvent.changedTouches[0].pageY;         startT = +new Da

查看更多