【问题标题】:jQuery and Bootstrap not working: ERR_CONNECTION_RESETjQuery 和 Bootstrap 不工作:ERR_CONNECTION_RESET
【发布时间】:2021-01-01 01:45:15
【问题描述】:

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

GET https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.jsnet::ERR_CONNECTION_RESET

GET https://code.jquery.com/jquery-3.5.1.min.jsnet::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>

【问题讨论】:

标签: javascript jquery laravel bootstrap-4


【解决方案1】:

尝试在所有行中使用它

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

【讨论】:

  • 不是stylesheet,是JavaScript
  • @KamleshPaul 使用 rel="JavaScript" 应该可以吗?无论如何,它有时只会给我错误..
猜你喜欢
  • 2015-08-04
  • 1970-01-01
  • 2018-08-31
  • 2018-04-23
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2019-01-28
  • 1970-01-01
相关资源
最近更新 更多