HTML:
<div ng-app="app"> <div ng-controller="ParentCtrl"> <select ng-model="tipost" ng-options="tip.DESC group by tip.TIPIS for tip in tipall"><br> </select> </div>
JS:
angular.module('app',[]) function ParentCtrl($scope){ $scope.tipall = [ {"ID":"1","TIPIS":"GroupName1","DESC":"name"},{"ID":"2","DESC":"name1"},{"ID":"3","TIPIS":"GroupName2","DESC":"name2"},{"ID":"4","DESC":"name3"},]; }原文链接:https://www.f2er.com/angularjs/145927.html