waypoint插件sticky的问题,Cannot read property 'extend' of undefined

            new Waypoint.Sticky({
                element: document.getElementById('menu')
            })
            
<script src="/node_modules/waypoints/lib/jquery.waypoints.min.js"></script>
<script src="/node_modules/waypoints/lib/shortcuts/sticky.min.js"></script>

现在实现一个滑动菜单到顶部后固定的功能,引入的是jquery的版本,但是还是报错Cannot read property 'extend' of undefined,有没有用过的指点一下

阅读 2.4k
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题