gpt4 book ai didi

javascript - bootstrap javascript 需要 jquery 错误

转载 作者:行者123 更新时间:2023-11-30 08:43:25 25 4
gpt4 key购买 nike

这是我的 .cshtml 代码

    <!DOCTYPE Html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
<title>welcome</title>
<link href="~/Content/bootstrap.css" rel="stylesheet" />
<script src="~/Scripts/jquery-1.8.0.min.js"></script>
<script src="~/Scripts/bootstrap.js"></script>
</head>
<body>...</body>
</html>

每当我执行我的代码时,它都会给出 bootstrap requires jquery 错误。请建议我应该怎么做才能消除此错误。

最佳答案

确保路径正确并指向大于1.9的jQuery版本

您正在使用与 Bootstrap 不兼容的 1.8

来源:

https://github.com/twbs/bootstrap/blob/v3.1.1/bower.json

关于javascript - bootstrap javascript 需要 jquery 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24107151/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com