在Bootstrap的Get start里教我们这么做:
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.0.0-rc1/css/bootstrap.min.css">
<!-- Latest compiled and minified JavaScript -->
<script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0-rc1/js/bootstrap.min.js"></script>
然而实际的情况则是在 http://examples.getbootstrap.com/ 这里面的所有examples全部没有引用bootstrap.min.js而仅仅是一个bootstrap.css
所以我想知道在用Bootstrap时在什么情况下我可以不引用bootstrap.min.js?如何简单的判断出来是否需要bootstrap.min.js?
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.0.0-rc1/css/bootstrap.min.css">
<!-- Latest compiled and minified JavaScript -->
<script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0-rc1/js/bootstrap.min.js"></script>
然而实际的情况则是在 http://examples.getbootstrap.com/ 这里面的所有examples全部没有引用bootstrap.min.js而仅仅是一个bootstrap.css
所以我想知道在用Bootstrap时在什么情况下我可以不引用bootstrap.min.js?如何简单的判断出来是否需要bootstrap.min.js?