# touch **Repository Path**: 858900276/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**: 0 - **Forks**: 1 - **Created**: 2017-02-13 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **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"); })