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

在使用Bootstrap中的 模态框时,一直在弹出Uncaught TypeError: $(...).modal is not a function 百度后对比发现引用路径及方法一致但仍是报错 

 

打开控制台后显示  Uncaught Error: Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4 发现是jQuery版本与Bootstrap版本问题所导致的, 更换成高于1.9.1版本的即可解决(ps:我使用的是bootstrap-3.3.7-dist)

 

 

posted @ 2020-12-01 11:37  limr  阅读(883)  评论(0)    收藏  举报