升序:
<ul> <li ng-repeat="user in users | orderBy:user.index">{{user.name}}</li> </ul>
倒序:
<ul> <li ng-repeat="user in users | orderBy:user.index:'desc'">{{user.name}}</li> </ul>原文链接:https://www.f2er.com/angularjs/148458.html
升序:
<ul> <li ng-repeat="user in users | orderBy:user.index">{{user.name}}</li> </ul>
倒序:
<ul> <li ng-repeat="user in users | orderBy:user.index:'desc'">{{user.name}}</li> </ul>原文链接:https://www.f2er.com/angularjs/148458.html