swiper如果有a链接会进行跳转的问题

只要执行下面的即可

shop-li为slide

icp为image.png swiper的命名

    $(".shop-li a").click(function(e){
        if(icp.animating==true){
            e.preventDefault();
        }else {
            location.href = $(this).attr("href")
        }
    });


相关内容

发表评论

验证码:
点击我更换图片

最新评论