踩坑-Uncaught Error: Bootstrap's JavaScript requires jQuery

Said today that a bug will often encounter, at the time just to work, using the framework jQuery, at that time also encountered this bug, met once, after which it will not do it again, when building projects today do, and sometimes did not pay attention, there has been such an error console, js animation front end there is no way to operate.

Uncaught Error: Bootstrap's JavaScript requires jQuery

5640239-25309001640e36b6.png

After seeing this, I opened the code, and sure enough, that is, bootstrap.js and jquery plugin library has introduced a different position as a result of the project, so the introduction of the first load jquery, reintroduction bootstrap, you can solve

<script src="js/global/jquery-2.1.1.min.js"></script>
<script src="js/global/bootstrap.js"> </script>

Original author: Chi Che girl

Guess you like

Origin blog.csdn.net/weixin_34072159/article/details/90911405
Recommended