Jssor slider - How do I destroy and recreate Jssor slider with different content

后端 未结 4 1260
独厮守ぢ
独厮守ぢ 2021-01-13 09:49

I\'m trying to use Jssor slider to show different HTML content depending on selected category and its subcategory. I successfully created content slider for one subcategory,

4条回答
  •  长发绾君心
    2021-01-13 10:10

    The old slider is still in ghosting mode and not really removed. A destroy() function is not added yet. The slider needs a $Pause and any event is to unbind before refreshing.

    https://github.com/jssor/slider/issues/98

    Jssor - unbinding the event

    Don't try - it is mad. I thought that everything was solved until I used the keyboard for navigation. Without a destroy method I would not recommend to do it this way and leave uncollected garbage.

提交回复
热议问题