摘要:
1、阻止冒泡 $(document).on(' touchstart', '.modal-body', function(e) { e.stopPropagation(); //阻止冒泡 遮罩内元素不关闭(遮罩关闭) }) 2、阻止点透 $(document).on(' touchend', '.m 阅读全文
摘要:
1、点击swiper以外元素跳转至指定页 var index = $(this).index() // var index = 1 1、$(".swiper-pagination span").eq(index).trigger('click'); 2、swiper.slideTo(index, 1 阅读全文