Bootstrap's JavaScript requires jQuery While jQuery is already loaded

前端 未结 4 752
终归单人心
终归单人心 2021-01-18 00:01

I\'m facing an error with loading the Bootstrap library as it always gives this error:

Uncaught Error: Bootstrap\'s JavaScript requires j

4条回答
  •  滥情空心
    2021-01-18 00:50

    Try to load jquery using https

    script_tag.setAttribute("src",
            "https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js");
    

    Hope it'll work.

提交回复
热议问题