javascript - How to solve the problem that fullpage can only be initialized once?
黄舟
黄舟 2017-07-05 10:46:53
0
1
908

In the Vue project, you need to initialize a fullpage after the route jump. There are a total of 6 components that require fullpage, but the fullpage error can only be initialized once, and the second one is useless. How to solve this problem?

黄舟
黄舟

人生最曼妙的风景,竟是内心的淡定与从容!

reply all (1)
仅有的幸福

Before component destruction, clear thefullpageobject

$.fn.fullpage.destroy('all');

Play online: https://jsfiddle.net/44w37p34/


Written by human flesh, good reviews, dear.

    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!