javascript - When clicking the left and right switching arrow of swipe, the current vue instance is accessed inside the slideNext function in the swipe source code.
漂亮男人
漂亮男人 2017-06-26 10:58:16
0
1
724

The current requirement is to use vue to make a tab bar with swipe carousel component.
When I click on the left and right heads of the carousel image, I want to get the page number of the current page in the slideNext function of swipe, and pass the page number to the vue instance to achieve the synchronization effect of the carousel image and the tab bar. !
But now var vm = new Vue(), the access in the slideNext function is underfined.
Solution

漂亮男人
漂亮男人

reply all(1)
伊谢尔伦

Do you have a code? (coo coo coo)

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template