var mySwiper = new Swiper ('.swiper-container', {
direction: 'horizontal',
// 触摸距离与slide滑动距离的比率
touchRatio:0.1,
// 无法滑动
onlyExternal:true,
// 滑块跟随手指进行移动
followFinger:false,
// 定义longSwipesMs
longSwipesMs:1000,
longSwipes:false,
shortSwipes:false,
longSwipesRatio:0.5,
touchAngle:10,
})
禁止切换和前进后退 分页器
切换效果 进程