初始化Swiper parameters Carousel Loop Touches Clicks Swiping / No swiping Observer Namespace PropertiesMethods Event autoplay Free Mode Grid Manipulation Parallax Pagination Navigation Buttons Effects Scollbar Keyboard Control Mousewheel Control Lazy Loading zoom Controller Thumbs Virtual Slides Hash Navigation History Navigation A11y 弃用属性
当前位置: 主页 > 中文api > Methods >
  • mySwiper.slideToClosest(speed, runCallbacks) 日期:2019-04-27 12:20:26 点击:59 好评:42

    slider1 slider2 slider3 贴合...

  • mySwiper.destroy(deleteInstance, cleanupStyles) 日期:2019-04-27 12:08:39 点击:141 好评:248

    移除所有绑定的事件监听(窗口的尺寸改变事件【如果removeResizeEvent的值不等于false】,容器(wrapper)的触控事件,以及文档的鼠标事件),对于添加/移除滑块,页面到文档时非常有用...

  • mySwiper.slidePrev(speed,runCallbacks) 日期:2019-04-27 12:01:14 点击:179 好评:118

    执行过渡动画到上一滑块...

  • mySwiper.slideNext(speed, runCallbacks) 日期:2019-04-27 11:57:35 点击:68 好评:230

    执行过渡动画到下一滑块(slide)(简单来说就是滑动到下一个页面)...

  • mySwiper.changeDirection(direction) 日期:2019-03-02 05:46:10 点击:167 好评:54

    动态改变切换方向。 可选择方向direction: horizontal或vertical,留空则自动改变。...

  • mySwiper.getTranslate() 日期:2018-10-06 22:30:57 点击:180 好评:72

    返回当前容器位移(translate)【css3 transform -translate】,即x,或y轴的偏移量。axis-参数为字符串x或y,对应于水平模式及垂直模式。...

  • mySwiper.on(event,handler) 日期:2018-07-17 00:26:34 点击:188 好评:40

    添加回调函数或者事件句柄。...

  • mySwiper.once(event,handler) 日期:2018-07-17 00:26:08 点击:54 好评:40

    添加回调函数或者事件句柄,这些事件只会执行一次。...

  • mySwiper.updateAutoHeight(speed) 日期:2018-03-29 13:39:06 点击:100 好评:36

    更新swiper的高度。 speed:number 速度(可选) runCallbacks:boolean 更新后是否产生transition事件,默认true...

  • mySwiper.updateSize() 日期:2018-01-11 16:43:36 点击:95 好评:-18

    这个方法会重新计算Swiper的尺寸。...

推荐内容