首页 > 解决方案 > jQuery 和 Bootstrap 不工作:ERR_CONNECTION_RESET

问题描述

我的 jQuery 和 Bootstrap 未加载并返回以下错误消息:

获取https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js网络::ERR_CONNECTION_RESET

获取https://code.jquery.com/jquery-3.5.1.min.js网络::ERR_CONNECTION_RESET

进口:

jQuery:

<script src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
<script src="{{ asset('material') }}/js/core/jquery.min.js"></script>
<script src="https://code.jquery.com/jquery-3.5.1.min.js"></script>

引导程序:

<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>

<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>

标签: javascriptjquerylaravelbootstrap-4

解决方案


尝试在所有行中使用它

<link rel="stylesheet" href="https://code.jquery.com/jquery-3.5.1.min.js">

推荐阅读