|
代码如下:怎么不能双向控制呢??
<!-- Swiper -->
<div class="swiper-container swiper-container1">
<div class="swiper-wrapper">
<div class="swiper-slide">1111111111111</div>
<div class="swiper-slide">22222222222</div>
</div>
</div>
<div class="swiper-container swiper-container2">
<div class="swiper-wrapper">
<div class="swiper-slide">aaaaaaaaaa</div>
<div class="swiper-slide">bbbbbbbbbbbb</div>
</div>
</div>
<script src="dist/js/swiper.min.js"></script>
<script>
var swiper1 = new Swiper('.swiper-container1', {
});
var swiper2 = new Swiper('.swiper-container2', {
});
Swiper1.params.control = Swiper2;
</script>
|
|