tap.jquery:jQuery 的自定义点击事件 + 自动点击点击转换

时间:2021-06-09 15:57:07
【文件属性】:
文件名称:tap.jquery:jQuery 的自定义点击事件 + 自动点击点击转换
文件大小:9KB
文件格式:ZIP
更新时间:2021-06-09 15:57:07
JavaScript 点击.jquery jQuery 的自定义点击事件 + 自动点击点击转换 包管理器 // Bower bower install --save tap-jquery 例子 $ ( el ) . on ( 'tap' , function ( e ) { // Tapped! } ) ; $ ( el ) . on ( 'click' , function ( e ) { // if it's a touch device, this will fire on tap instead of click! } ) ; 如果你愿意,你可以关闭点击点击转换 // Put this before your tap.jquery.js script window . convertClicksToTaps = false ; 或覆盖每个事件的点击转化 $ ( el )
【文件预览】:
tap.jquery-master
----.jshintrc(172B)
----bower.json(588B)
----src()
--------tap.jquery.js(3KB)
----example()
--------index.html(571B)
--------example.js(478B)
--------example.css(251B)
----gulpfile.js(806B)
----LICENSE(1KB)
----README.md(644B)
----dist()
--------tap.jquery.js(3KB)
--------tap.jquery.min.js(1KB)
----.jscsrc(822B)
----.gitignore(42B)
----package.json(782B)

网友评论