Skip to content

Swiper 的 onIndexChange 函数能不能 传递 Swiper.Item 的key 给我? #5380

Answered by GOWxx
shifenhutu asked this question in Q&A
Discussion options

You must be logged in to vote

写了个 demo

用数组,索引就意义了,你的需求完全可以满足,想要其他的数据也可以在数组元素里加。

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by shifenhutu
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #5379 on June 22, 2022 15:54.