Uncaught TypeError: $(...).modal is not a function错误
程序员文章站
2022-06-09 16:48:36
...
练习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>
推荐阅读
-
d3.svg.line()错误:TypeError: d3.svg.line is not a function
-
关于Uncaught TypeError: validator.resetForm is not a function错误的问题
-
Uncaught TypeError: xx.split is not a function
-
Uncaught TypeError: $(...).uedSelect is not a function
-
报错:Uncaught TypeError: $(…).dialog is not a function,处理方法。
-
Uncaught TypeError: Object.entries is not a function
-
Uncaught TypeError: $.ajax(...).error is not a function
-
Uncaught TypeError: $(...).modal is not a function错误
-
Uncaught TypeError: result.map is not a function
-
Uncaught TypeError: $(...)table is not a function at HTMLTableCellElement