如何解决Jquery插件脚本顺序
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script>
<!-- Bootstrap and My Cart -->
<script type="text/javascript"
src="https://code.jquery.com/jquery-2.2.4.min.js"
></script>
<script type="text/javascript" src="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
<script type="text/javascript"
src="../Jquery-cart-add/cart.js"
></script>
<script type="text/javascript"
src="../Jquery-cart-add/jquery.mycart.js"
></script>
<!-- Modal Vanilla Js -->
<script src="../product landing page/modal.js"></script>
<!-- Owl Sliders -->
<script src="../product landing page/owl carousel/owl.carousel.min.js"></script>
<script src="../product landing page/owl carousel/jquery.js"></script>
<script src="../product landing page/owl carousel/jquery-min.js"></script>
<!-- Product Gallery -->
<script type="text/javascript" src="../product landing page/product_gallery/jquery.js"></script>
<script type="text/javascript" src="../product landing page/product_gallery/zoom.js"></script>
<script type="text/javascript" src="../product landing page/product_gallery/script.js"></script>
<!-- Number Spinner -->
<script src="../product landing page/number spinner/jquery.nice-number.js">
</script>
<script type="text/javascript" src="../product landing page/number spinner/jquery-number.js">
</script>
</body>
有人能告诉我这里有什么问题吗?我的添加到购物车 jquery 插件在另一个页面上可以正常工作,但是当我尝试将它添加到我的项目中时它不起作用。我尝试切换我的 jquery min 和bootstrap cdn 在所有脚本下都可以工作,但随后缩放库插件和数字微调器不起作用。请告诉我我错过了什么。谢谢。
这是浏览器中的错误。
未捕获的类型错误:$(...).myCart 不是函数 jQuery 9 一世 用火 准备好 J 承诺 购物车.js:16:23 jQuery 9 一世 用火 准备好 J (异步:EventListener.handleEvent) 承诺
这里是所有插件
https://github.com/cristi-20/Plugins-.git
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。