Bootstrap 抛出未捕获的错误:Bootstrap 的 JavaScript 需要 jQuery [英] Bootstrap throws Uncaught Error: Bootstrap's JavaScript requires jQuery
本文介绍了Bootstrap 抛出未捕获的错误:Bootstrap 的 JavaScript 需要 jQuery的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试使用 Bootstrap 为程序制作界面.我将 jQuery 1.11.0 添加到 <head>
标记并认为就是这样,但是当我在浏览器中启动网页时,jQuery 报告错误:
I am trying to use Bootstrap to make an interface for a program. I added jQuery 1.11.0 to the <head>
tag and thought that was that, but when I launch the web page in a browser jQuery reports an error:
Uncaught Error: Bootstrap's JavaScript requires jQuery
我曾尝试使用 jQuery 1.9.0,也曾尝试使用托管在多个 CDN 上的副本,但无法正常工作.有人能指出我做错了什么吗?
I have tried using jQuery 1.9.0, I have tried with copies hosted on several CDNs, but I can't get it work. Can anybody point out what I'm doing wrong?
推荐答案
试试这个
更改文件的顺序,应该如下所示..
Change the order of files it should be like below..
<script src="js/jquery-1.11.0.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/wow.min.js"></script>
这篇关于Bootstrap 抛出未捕获的错误:Bootstrap 的 JavaScript 需要 jQuery的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文