gpt4 book ai didi

javascript - 在 Bootstrap 上选择表格菜单可返回父链接

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

我的项目是在此本地链接中设置的:

localhost:12345/index.html#/BookCollection

在此页面中有 3 个来自 Bootstrap 的选项卡组件。最近的、过去的和即将到来的

当我单击任何一个选项卡时,我会返回到:

localhost:12345/index.html#/

本来应该是:

localhost:12345/index.html#/BookCollection#Recent

另外两个选项卡链接是:

localhost:12345/index.html#/BookCollection#Past

localhost:12345/index.html#/BookCollection#UpComing

请注意,我不允许更改以下链接结构:

localhost:12345/index.html#/BookCollection

这是我正在使用的 Bootstrap 组件:

 <ul class="nav nav-tabs">
<li class="active"><a data-toggle="tab" href="#Recent">Recent</a></li>
<li><a data-toggle="tab" href="#Past">Past</a></li>
<li><a data-toggle="tab" href="#UpComing">UpComing</a></li>
</ul>

<div class="tab-content">

<div id="Recent" class="tab-pane fade in active">
<h3>Recent Books</h3>
<p>Some content.</p>
</div>

<div id="Past" class="tab-pane fade">
<h3>Past Books</h3>
<p>Some content in Past Books.</p>
</div>

<div id="UpComing" class="tab-pane fade">
<h3>UpComing books</h3>
<p>Some content in UpComing books.</p>
</div>

</div>

我需要 Bootstrap 中的选项卡组件才能工作。

如何修复它?

最佳答案

看来你的代码片段工作得很好。也许您可以多解释一下(并使用像 bootply 这样的网站,因为您的本地主机无法访问)。

在此处查看您的代码片段: http://www.bootply.com/Ny6q4guDgk

关于javascript - 在 Bootstrap 上选择表格菜单可返回父链接,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38228819/

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