使用fullpage后,获取不到滚动条滚动的高度怎么解决呢?
使用fullpage后,获取不到滚动条滚动的高度怎么解决呢?
使用fullpage后,获取不到滚动条滚动的高度怎么解决呢?
2016-06-27
$('#dowebok').fullpage({
sectionsColor: ['#1bbc9b', '#4BBFC3', '#7BAABE', '#f90'],
anchors:['page1','page2','page3','page4'],
afterLoad:function(anchorLink,index){ //页面的锚链接,页面序号.当滚动完成后返回数据
console.log("anchorLink"+anchorLink+"index"+index);
},
onLeave:function(index,nextIndex,direction){ //滚动之前的页面序号,滚动后的页面序号,滚动的方向。滚动前先返回数据
console.log("index "+index+"nextIndex "+nextIndex+"direction "+direction);
},
afterRender:function(){ //页面载入完成后返回,其他的回调方法全部在这个方法回调完成后回调
console.log("afterRender");
},
afterResize:function(){ //当页面尺寸被改变后调用此方法
console.log("afterResize");
},
afterSlideLoad:function(anchorLink,index,slideAnchor,slideIndex){
console.log("anchorLink "+anchorLink+"index "+index+"slideAnchor "+slideAnchor+"slideIndex "+slideIndex);
},
onSlideLeave:function(anchorLink,index,slideIndex,direction,nextSlideIndex){
console.log("anchorLink "+anchorLink+"index "+index+"slideIndex "+slideIndex+"direction "+direction+"nextSlideIndex "+nextSlideIndex);
}
});
举报