-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
moveTo 跳转不了指定的index页面 #2
Comments
|
能正常跑起来,就是跳不了指定的页面, |
其实我想要的效果是,如果中间有几张页面是display:none 的,想直接跳过去,有什么好的建议吗? |
如上代码,pageSlider 的调用方式是自己控制的,如果你中间有是隐藏的,你可以通过改变他的 class,如 page 改成 hide,通过 class 控制其隐藏,那么,就不会被获取了;如果你一定要用 style="display:none" 的方式,你也可以自己写代码过滤掉隐藏的元素,只要你传过来的 pages 参数是显示的即可。 |
意思是如果class上没有page这个类,并且隐藏这个div 就不会被获取了是吗? |
是啊,这些都是很自由控制的,你 class="page" 的去掉,就不会被获取了,改成其他,如 class="hide", 然后通过
来实现隐藏,就 OK 了。 |
No description provided.
The text was updated successfully, but these errors were encountered: