在使用swiper过程中,发现a链接失效,经过查找分析发现是由于没有设置一个参数preventClicks,该参数默认的值是ture,
如果需要加入a链接需要设置preventClicks的值为false
preventClicks:false
<script type="text/javascript">
var swiper = new Swiper('.downbannner .swiper-container', {
pagination: '.swiper-pagination',
paginationClickable: true,
preventClicks:false,
autoplay: 2500,
slidesPerView: 1,
slidesPerColumn: 1,
autoplayDisableOnInteraction: false
});
</script>