我已经添加了所有需要的CDN,使bootstrap
在我的HTML项目中工作。
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.11.8/dist/umd/popper.min.js" integrity="sha384-I7E8VVD/ismYTF4hNIPjVp/Zjvgyol6VFvRkX/vR+Vc4jQkC+hVqc2pM8ODewa9r" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.min.js" integrity="sha384-fbbOQedDUMZZ5KreZpsbe1LCZPVmfTnH7ois6mU1QK+m14rQ1l2bGBq41eYeM/fS" crossorigin="anonymous"></script> <script src="{% static 'js/theMap.js' %}"></script>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-Zenh87qX5JnK2Jl0vWa8Ck2rdkQ2Bzep5IDxbcnCeuOxjzrPF/et3URy9Bv1WTRi" crossorigin="anonymous">
但是我在运行时得到这个错误:
GET https://cdn.jsdelivr.net/npm/@popperjs/core@2.11.8/dist/umd/popper.min.js net::ERR_CONNECTION_RESET
/en/web_app/:418
GET https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.min.js net::ERR_CONNECTION_RESET
/en/web_app/:419
GET https://cdn.jsdelivr.net/npm/bootstrap@5.2.2/dist/css/bootstrap.min.css net::ERR_CONNECTION_RESET
尽管我使用相同的url在引导官方文档中使用
1条答案
按热度按时间osh3o9ms1#
添加下面代码中添加的所有链接。希望这将解决你的问题代码cradit:w3school