Fullpage.js:根据当前部分更改页面标题

时间:2016-03-04 11:01:43

标签: jquery fullpage.js titlebar sections page-title

正如此帖的标题已经说明的,如何根据Fullpage.js?

中的当前部分更改页面标题

1 个答案:

答案 0 :(得分:5)

Fullpage.js有一个事件onLeave。

 onLeave: function(index, nextIndex, direction){ 
     switch(nextIndex) {
         case 1:
             document.title = "Index";
             break;
         //etc
     }
 },

也许这样的事情会发生

相关问题