【文件属性】:
文件名称:swipe:滑动 jQuery 插件
文件大小:2KB
文件格式:ZIP
更新时间:2021-06-02 07:05:05
JavaScript
刷卡
滑动 jQuery 插件
用法
var options = {bounce : { flag : true , axis : 20 , time : 100, target : $("body") } };
//flag : 弹跳效果开/关 , axis : 弹跳效果距离 , time : 弹跳时间 , target : target jQuery Object
$(document).Swipe(function(e){ console.log(e.currentTarget.component.direction); //+1 向左滑动 -1 向右滑动 } } , options);
【文件预览】:
swipe-master
----README.md(384B)
----touchswipe.js(5KB)