# touch **Repository Path**: d86e/touch ## Basic Information - **Project Name**: touch - **Description**: JQuery滑动事件 - **Primary Language**: JavaScript - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 7 - **Forks**: 1 - **Created**: 2015-11-10 - **Last Updated**: 2023-09-27 ## Categories & Tags **Categories**: jquery-plugins **Tags**: None ## README #touch jQuery的滑动手势事件插件 touch方法接收两个参数: 1.滑动的方向,如:top,bottom,left,right 2.回调方法,事件发生后运行的函数 使用示例: //向上滑动事件 $("body").touch("top",function(){ console.log("top"); }) //向下滑动事件 $("body").touch("bottom",function(){ console.log("bottom"); }) //向左滑动事件 $("body").touch("left",function(){ console.log("left"); }) //向右滑动事件 $("body").touch("right",function(){ console.log("right"); })