Fullpage.js & iScroll动态内容高度刷新

Fullpage.js & iScroll dynamic content height refresh

在fullpage.js中使用scrollOverflow:true选项时,是否可以在内容高度改变后手动调用iscroll对象的refresh()?

当然可以,使用fullpage.js的reBuild方法即可。

来自the docs

reBuild

Updates the DOM structure to fit the new window size or its contents. Ideal to use in combination with AJAX calls or external changes in the DOM structure of the site.

$.fn.fullpage.reBuild();