let mySwiper = new window.Swiper('#post_swiper_' + this.elId, {
loop: true,
pagination: { // 指示点
el: '.swiper-pagination'
}
})
html中
<script async src="<%=BASE_URL%>lib/swiper/swiper.min.js"></script>
let mySwiper = new window.Swiper('#post_swiper_' + this.elId, {
loop: true,
pagination: { // 指示点
el: '.swiper-pagination'
}
})
html中
<script async src="<%=BASE_URL%>lib/swiper/swiper.min.js"></script>