AngularJS实现tab选项卡
关键代码
<ul class="nav nav-tabs" ng-init='activeTab=1'>
<li class="active" ng-click='activeTab=1'>基本信息</li>
<li ng-click='selectProject()'>关联项目</li>
<li ng-click='activeTab=3'>关联项目</li>
</ul>
...
...
...
<div class="tab-content" ng-show="activeTab==1">
</div>
<div class="tab-content" ng-show="activeTab==2">
</div>
<div class="tab-content" ng-show="activeTab==3">
</div>