jQuery||zepto:检测移动端网页左右滑动动作插件

//Code by RosenChai $.fn.swipeCatch = function(func1,func2){ var touch_start={},touch_now={},touch_end={},diff={}; var $this = $(this); $this.off().on('touchstart',function(e){ touch_start.x = e.touches[0].pageX||e.pageX; touch_start.y = e.touches[0].pageY||e.pageY; }).on('touchmove',function(e){ touch_now.x ... read more