twitter-bootstrap Bootstrap 4 - “完整的 JavaScript”与“完整的 JavaScript 包”

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/48713215/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-22 01:14:52  来源:igfitidea点击:

Bootstrap 4 - "Complete JavaScript" vs "Complete JavaScript Bundle"

twitter-bootstrapbootstrap-4twitter-bootstrap-4

提问by Michael Cole

What am I missing? The examples use min.js. The bundle.min.js has more code, but I can't find a description of that extra code...

我错过了什么?这些示例使用 min.js。bundle.min.js 有更多代码,但我找不到那个额外代码的描述......

https://getbootstrap.com/docs/4.0/getting-started/download/

https://getbootstrap.com/docs/4.0/getting-started/download/

Code:

代码:

https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.jsvs https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.bundle.min.js

https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.jsvs https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.bundle.min.js

回答by Zim

As shown in the docs, the "bundle" includes popper.js for you, the other does not.

文档中所示,“捆绑包”为您包含 popper.js,另一个不包含。

enter image description here

在此处输入图片说明