<div ng-init="now=0;" class="nav">
<h4>选项卡</h4>
<div >
<input type="button" value="Tab1" class="{{now==0?'active':''}}" ng-click="now=0">
<input type="button" value="Tab2" class="{{now==1?'active':''}}" ng-click="now=1">
<input type="button" value="Tab3" class="{{now==2?'active':''}}" ng-click="now=2">
</div>
<div ng-show="now==0">one Tab</div>
<div ng-show="now==1">Two Tab</div>
<div ng-show="now==2">Three Tab</div>
</div>
//引入JS文件
<script type="text/javascript" src="js/angular.min.js" ></script>
每个菜鸟都有一个成为大神的梦想,而我正在努力中