Angularjs Select获取数组下标

1、定义资源工具

//资源类型
    $scope.status=['项目测试','开发工具','安装包','工做计划','测试项目','个人游戏','个人音乐','博客首页图片'];

2、没错直接用  {{$index}} 获取便可开发工具

资源类型:<select style="width: 150px;height: 25px;" ng-model="searchEntity.type" >
                                                <option ng-repeat="x in status" value="{{$index}}">{{x}}</option>
                                            </select>
相关文章
相关标签/搜索