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>

posted on 2017-10-25 18:57  Yoooshiki  阅读(532)  评论(0编辑  收藏  举报

导航