powy1993/fullpage

修改代码方便入门者学习

Closed this issue · 0 comments

在autoplay.html中:
240行附近:
/interval = setTimeout(function() {
console.log('4');
runPage.go(runPage.thisPage() + 1);
console.log('5');
}, 3000);
/

script代码中,你用了2次setTimeOut函数,我是初学者,很难理解其中的逻辑。尝试将上述代码修改成:
runPage.go(runPage.thisPage() + 1);
省略调用setTimeOut方法一次。这样也能达到同样的效果。