H5端跳转链接误触

      $('a').on('touchstart',function(){
                        var count = 0;
                        count++;
                        $('a').on('touchmove',function(){
                            count = 0;
                            return false;
                        });
                        $('a').on('touchend',function(){
                            if(count == 1){
                                var link = $(this);
                                window.location.href = link.attr('href');
                                return false;
                            }
                        });
                        return false;
      });

发布了51 篇原创文章 · 获赞 19 · 访问量 6万+

猜你喜欢

转载自blog.csdn.net/qq_40999917/article/details/105202462