有没有办法获得 flexslider根据 anchor 链接从特定幻灯片开始?
例如。http://site.com/index.html#slide1 - 从幻灯片 1 开始
http://site.com/index.html#slide3 - 从幻灯片 3 开始
我想将其设置为 startAt 选项上的变量,该变量会显示类似
如果 window.location.hash 是 number ,则从 number 开始。
最佳答案
flexslider有一个选项startAt,它接受幻灯片索引的整数值。
关于jquery - Flexslider - 根据 anchor 从特定幻灯片开始?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11456653/