<select class="form-control underline" ng-model="reportform.score" ng-options="score.value as score.name for score in scoreOptions|orderBy:col " style="margin: 0;padding: 0"></select>
$scope.col = 'name';
$scope.scoreOptions = [
{ name: '3.75', value: '1' },
{ name: '3.5', value: '2' },
{ name: '3.25', value: '3' },
{ name: '3.0', value: '4' },
{ name: '4.0', value: '5' }, 
{ name: '5.0', value: '6' }];

参考排序文章Angularjs轻松实现表格按指定列排序

相关文章:

  • 2021-12-04
  • 2022-12-23
  • 2022-01-17
  • 2022-12-23
  • 2021-07-23
  • 2022-12-23
  • 2021-08-04
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-03-03
  • 2021-07-26
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案