<ul id="myTab" class="nav nav-tabs">
<li class="active"><a href="#tab1" aria-controls="tab1" data-toggle="tab">标题1</a></li>
<li class="active"><a href="#tab1" aria-controls="tab1" data-toggle="tab">标题2</a></li>
<li class="active"><a href="#tab1" aria-controls="tab1" data-toggle="tab">标题3</a></li>
</ul>
<div id="myTabContent" class="tab-content">
<div class="tab-pane fade in active" id="tab1"><p>内容1</p></div>
<div class="tab-pane fade" id="tab1"><p>内容2</p></div>
<div class="tab-pane fade" id="tab1"><p>内容3</p></div>
</div>
<script>
$(function () {
$('#myTab li:eq(1) a').tab('show');
});
</script>