gpt4 book ai didi

bootstrap-4 - Bootstrap 4 : how to use NavBars without jQuery/minimal bootstrap. js?

转载 作者:行者123 更新时间:2023-12-03 18:05:06 25 4
gpt4 key购买 nike

我们网站上的绝大多数页面将仅使用 GRID 和 NAVBAR。我们在每个页面上加载所有 jQuery 和 bootstrap.min.js 是没有意义的。

事实上,唯一需要的 JS 就是处理移动请求上 NAVBAR 的打开/关闭的 js。

有没有人创建了一个最小的、小的 .js 来处理这个问题?

我为 Bootstrap 3 找到了一堆,但在 Bootstrap 4 中我什么也看不到。

谢谢

最佳答案

是的!你可以使用这个:

https://thednp.github.io/bootstrap.native/v4.html

用cdn

<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/bootstrap.native@2.0.15/dist/bootstrap-native-v4.min.js"></script>

使用 npm

运行命令:
npm install https://github.com/thednp/bootstrap.native

并导入:
var bsn = require('bootstrap.native/dist/bootstrap-native-v4');

关于bootstrap-4 - Bootstrap 4 : how to use NavBars without jQuery/minimal bootstrap. js?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45122797/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com