Swiper中文论坛
标题:
求助!双向控制问题?
[打印本页]
作者:
听不得
时间:
2015-6-9 10:26
标题:
求助!双向控制问题?
代码如下:怎么不能双向控制呢??
<!-- 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>
作者:
chen1110103
时间:
2015-6-9 11:30
要区分大小写
欢迎光临 Swiper中文论坛 (http://bbs.swiper.com.cn/)
Powered by Discuz! X3.2