我正在使用 Jquery 选项卡,并且由于某种原因,它过度使用了 ID 为 #ui-tabs[object , object] ( a href="#ui-tabs[object , object]" )的链接,这是为什么会发生这种情况的想法?
下面是我的结构示例
JS
$(function () {
$(".Whatson-today").tabs();
});
HTML
<div class="Whatson-today">
<ul id="WOT-TabNav">
<li class="WOToday">
<a href='#tabs-1'>
What's on Today
</a>
</li>
<li class="WOTomorrow">
<a href='#tabs-2'>
What's on Tomorrow
</a>
</li>
</ul>
<div id='tabs-1'>
<ol>
<li>
<ol>
<li class="WOT-Time">
7:30 PM
</li>
<li class="WOT-Title">
<h2 style="display:none;"><a href="#">test</a></h2>
<h2><a href="http://somelink.com">somelink</a></h2>
</li>
</ol>
</li>
</ol>
</div>
<div id='tabs-2'>
</div>
</div>