document.addEventListener('touchstart', touch, false);
    document.addEventListener('touchmove', touch, false);
    document.addEventListener('touchend', touch, false);
    var tn = 0;
    function touch(event) {
        var event = event || window.event;
        switch (event.type) {
            case "touchstart":
                break;
            case "touchend":
                tn++;
                if (tn >= 2) { //大于点击次数
                    
                }
                break;
            case "touchmove":
           // 执行滑动事件
                break;
        }
   }        

 

相关文章:

  • 2022-12-23
  • 2021-12-23
  • 2021-12-23
  • 2021-09-11
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-23
  • 2022-12-23
  • 2021-04-24
  • 2022-12-23
  • 2021-12-23
  • 2021-06-26
  • 2021-09-23
相关资源
相似解决方案