问题
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