Bootstrap modal: is not a function

后端 未结 13 2203
滥情空心
滥情空心 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:28

    The problem is due to having jQuery instances more than one time. Take care if you are using many files with multiples instance of jQuery. Just leave 1 instance of jQuery and your code will work.

    
    

提交回复
热议问题