Bootstrap modal: is not a function

后端 未结 13 2209
滥情空心
滥情空心 2020-12-02 17:45

I have a modal in my page. When I try to call it when the windows load, it prints an error to the console that says :

$(...).modal is not a function
         


        
13条回答
  •  一个人的身影
    2020-12-02 18:39

    This warning may also be shown if jQuery is declared more than once in your code. The second jQuery declaration prevents bootstrap.js from working correctly.

    
    
    ...
    
    

提交回复
热议问题