安迪_963

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

浏览器console报了上面的错误, 发现是bootstrap文件头的检测,

if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");

 开始以为是jquery.js文件名的原因,最后改成jQuery发现问题依旧

 

经查找在stackoverflow上面找到了解决问题的办法:原地址:https://stackoverflow.com/questions/22658015/bootstrap-wont-detect-jquery-1-11-0-uncaught-error-bootstraps-javascript-re

解决办法是:  在导入bootstrap之前先导入jquery,

 

posted on 2018-03-10 17:54  Andy_963  阅读(350)  评论(0编辑  收藏  举报