Uncaught TypeError: $(...).modal is not a function错误

练习ssm项目的时候,报了一个Uncaught TypeError: $(…).modal is not a function错误
在这里插入图片描述
在这里插入图片描述
百度了很多,大多说是 jQuery插件引用要在bootstrap之前,可我明明在bootstrap之前引用的jQuery插件,可还是报错
在这里插入图片描述
最后把jQuery插件的版本换成更高的就发现没问题了
在这里插入图片描述

<link href="${APP_PATH}/static/bootstrap-3.3.7-dist/css/bootstrap.min.css" rel="stylesheet">
<script type="text/javascript" src="${APP_PATH}/static/bootstrap-3.3.7-dist/js/bootstrap.min.js"></script>

猜你喜欢

转载自blog.csdn.net/weixin_42594143/article/details/108784833