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

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 the fullpageobject

$.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