如何重新初始化 Foundation Magellan 插件?我需要这样做,因为 magellan 位于选项卡内,打开选项卡后我需要重新初始化“magellan-top-offset”。
$(document).foundation('magellan', 'init');
没用...
最佳答案
好吧,这个问题一如既往地愚蠢,实际上完整模块的名称是magellan-expedition
,而不是magellan
。
所以正确的代码是这样的:
$(document).foundation('magellan-expedition','set_expedition_position');
关于javascript - 麦哲伦基金会重新启动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21991342/