Bootstrap : TypeError: $(…).modal is not a function

前端 未结 5 582
青春惊慌失措
青春惊慌失措 2020-12-17 10:15

i\'ve been trying to call bootstrap modal from jquery and keep getting this error message :

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

Here

5条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-17 10:56

    Adding the jquery*.js file reference twice can also cause the issue. It could be part of your bundle and you might have added to the page too. Hence you need to remove the additional reference like

提交回复
热议问题