<li class="ui-state-default ui-corner-top ui-tabs-active ui-state-active" role="tab" tabindex="0" aria-controls="Tab0" aria-labelledby="ui-id-1" aria-selected="true">
<a href="#Tab0" class="ui-tabs-anchor" role="presentation" tabindex="-1" id="ui-id-1">
<span class="titlecase">jones,mike dr</span>
</a>
</li>
<li class="ui-state-default ui-corner-top" role="tab" tabindex="-1" aria-controls="Tab1" aria-labelledby="ui-id-2" aria-selected="false">
<a href="#Tab1" class="ui-tabs-anchor" role="presentation" tabindex="-1" id="ui-id-2">
<span class="titlecase">asdf,asdfasd mrs</span>
</a>
</li>
我有一个函数会更改索引上的选项卡,但由于某种原因,它会自动获得-1
秒,因此我的onclick="javascript:ChangeTabLocation('1');"
永远不会点击第二个标签。
代码中的任何想法会自动为其分配-1
吗?