【发布时间】:2014-03-11 01:21:23
【问题描述】:
我有一组 jQuery UI 选项卡链接,所以:
<div id="tabs">
<ul>
<li><a href="#some_div">Overview</a></li>
<li><a href="/somelink.html">Some Link</a></li>
<li><a href="/anotherlink.html">Another Link</a></li>
<li><a href="#">Other</a></li>
</ul>
</div>
我想要实现的是指向特定标签的直接链接。因此,例如,如果选项卡位于 /tabs.html 中,我希望能够直接访问 anotherlink.html,但通过 tabs.html (本质上是一个将打开 tabs.html 但选择了 anotherlink 选项卡的链接)。我显然可以通过执行 tabs.html#anotherlink 然后检查 url 并选择正确的选项卡来创建功能。我只是想确保在 jQuery UI 中没有明显的内置方法来执行此操作。
我在文档中找不到任何内容,因此我们将不胜感激!
【问题讨论】: