2

ユーザーが .carousel をスワイプしたときに関数を実行する次のコードがあります。ただし、タップ機能の使い方がよくわかりません。ユーザーが .carousel 要素内のリンクをタップしたときに機能を実行したいと考えています。これをどのように書きますか?ありがとう!

 $(".carousel").swipe({
      excludedElements: "button, input, select, textarea, .noSwipe",
      swipeLeft: function() {
        $('.carousel').trigger('next', 4);
      },
      swipeRight: function() {
        $('.carousel').trigger('prev', 4);
      },
      tap: function(event, target) {
       ...............
      }
    });
4

0 に答える 0