AngularJs 【使用】 -- ng-repart 排序使用
1.单字段
ng-repeat="item in dataList | orderBy:'field' "
2.多字段
ng-repeat="item in dataList | orderBy:['field','field2','field3'] "
如果需要倒序 则在字段前带上 "-" 符号即可
如:ng-repeat="item in dataList | orderBy:'-field' "
转载于:https://www.cnblogs.com/alan_peng/p/5912452.html
本文来自互联网用户投稿,文章观点仅代表作者本人,不代表本站立场,不承担相关法律责任。如若转载,请注明出处。 如若内容造成侵权/违法违规/事实不符,请点击【内容举报】进行投诉反馈!
