1.0.6 • Published 6 years ago

yindu-page v1.0.6

Weekly downloads
6
License
ISC
Repository
-
Last release
6 years ago

使用说明文档

Page.js 页面布局类

属性名称默认值是否必须
pages需要切换的所有屏$('.page')
direction切换方向 :vertical 或 v 为上下滑动,horizontal 或 h 为左右滑动vertical;
currentClass当前屏的class (方便实现内容的进场动画)current
rememberLastVisited记住上一次访问结束后的索引值,可用于实现页面返回后是否回到上次访问的页面true
animationPlayOnce切换页面时,动画只执行一次function(){}
oninit初始化完成时的回调function(){}
onbeforechange开始切换前的回调function(){}
onchange每一屏切换完成时的回调function(){}
onSwipeUpswipeUp 回调function(){}
onSwipeDownswipeDown 回调function(){}
onSwipeLeftswipeLeft 回调function(){}
onSwipeRightswipeRight 回调function(){}
方法名称参数示例
next()切换到下一屏index:指定播放位置
prev()返回上一屏
moveTo(index,isEase)跳到指定位置index:跳到指定位置:isEase:是否需耀动画 默认:false需要动画 不需要动画:true
1.0.6

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago