slick() |
options : object |
初始化 slick |
unslick() |
|
销毁 slick |
slickNext() |
|
切换下一张 |
slickPrev() |
|
切换上一张 |
slickPause() |
|
暂停自动播放 |
slickPlay() |
|
开始自动播放 |
slickGoTo() |
index : int |
切换到第 x 张 |
slickCurrentSlide() |
|
返回当前幻灯片索引 |
slickAdd() |
element : html or DOM object, index: int, addBefore: bool |
Add a slide. If an index is provided, will add at that index, or before if addBefore is set. If no index is provided, add to the end or to the beginning if addBefore is set. Accepts HTML String |
slideRemove() |
index: int, removeBefore: bool |
Remove slide by index. If removeBefore is set true, remove slide preceding index, or the first slide if no index is specified. If removeBefore is set to false, remove the slide following index, or the last slide if no index is set. |
slickFilter() |
filter : selector or function |
Filters slides using jQuery .filter syntax |
slickUnfilter() |
|
Removes applied filter |
slickSetOption(option,value,refresh) |
option : string(option name), value : depends on option, refresh : 布尔值 |
Sets an option live. Set refresh to true if it is an option that changes the display |