bootsrap nav-bar collapsable cannot make it work

后端 未结 1 430
北荒
北荒 2020-11-28 17:18

i\'m developing an Angularjs application and i\'d like to make it multiplatform so to do that i\'m trying to use Bootsrap, i found a template i\'d like to follow (https://bl

相关标签:
1条回答
  • 2020-11-28 17:34

    Both jQuery and Bootstrap.js should be included with jQuery placed before Bootstrap.js.

    Note: The version of jQuery that can be used will vary depending on the version of Bootstrap being used (or vice versa).


    Bootstrap Version 4

    JS Many of our components require the use of JavaScript to function. Specifically, they require jQuery, Popper.js, and our own JavaScript plugins. Place the following <script>s near the end of your pages, right before the closing </body> tag, to enable them. jQuery must come first, then Popper.js, and then our JavaScript plugins.

    We use jQuery’s slim build, but the full version is also supported.


    For Release v4.0.0-beta.2 package.json

    "peerDependencies": {
        "jquery": "1.9.1 - 3",
        "popper.js": "^1.12.7"
    },
    

    Bootstrap Version 3

    jQuery required

    Please note that all JavaScript plugins require jQuery to be included, as shown in the starter template. Consult our bower.json to see which versions of jQuery are supported.

    For Release v3.3.7 Changelog & bower.json

    "dependencies": {
        "jquery": "1.9.1 - 3"
    }
    

    For v3.3.6 bower.json

    "dependencies": {
      "jquery": ">= 1.9.1 - 2"
    }
    

    For v3.3.0 - v3.3.5 bower.json

    "dependencies": {
      "jquery": ">= 1.9.1"
    }
    

    This does not account for the release of jQuery v3.0


    For v3.0.0rc1 - v3.2.0 bower.json

    "dependencies": {
      "jquery": ">= 1.9.0"
    }
    

    This does not account for the release of jQuery v3.0

    0 讨论(0)
提交回复
热议问题