iDangerous Swiper plugin reset slides

烈酒焚心 提交于 2019-12-10 21:24:22

问题


I am using the iDangerous Swiper plugin. I need to periodically change all the slides in an ajax method. What would be the best method to do the same.


回答1:


  • call destroy() on Swiper
  • remove/replace all you slides with new ones
  • clear style attribute on .swiper-wrapper
  • initialize swiper again


来源:https://stackoverflow.com/questions/22394521/idangerous-swiper-plugin-reset-slides

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!