Jquery 轻触式轻触功能
我有以下代码,当用户滑动.carousel时执行函数。但是我不太确定如何使用tap函数,我想在用户点击.carousel元素中的链接时执行一个函数。我该怎么写呢?谢谢Jquery 轻触式轻触功能,jquery,swipe,Jquery,Swipe,我有以下代码,当用户滑动.carousel时执行函数。但是我不太确定如何使用tap函数,我想在用户点击.carousel元素中的链接时执行一个函数。我该怎么写呢?谢谢 $(".carousel").swipe({ excludedElements: "button, input, select, textarea, .noSwipe", swipeLeft: function() { $('.carousel').trigger('next', 4);
$(".carousel").swipe({
excludedElements: "button, input, select, textarea, .noSwipe",
swipeLeft: function() {
$('.carousel').trigger('next', 4);
},
swipeRight: function() {
$('.carousel').trigger('prev', 4);
},
tap: function(event, target) {
...............
}
});