AngularJS Filters
过滤器可以使用一个管道字符(|)添加到表达式和指令中
|
过滤器 |
描述 |
|
currency |
格式化数字为货币格式。 |
|
filter |
从数组项中选择一个子集。 |
|
lowercase |
格式化字符串为小写。 |
|
orderBy |
根据某个表达式排列数组。 |
|
uppercase |
格式化字符串为大写。 |
ng-repeat="x in names | orderBy : 'Country'"
本文来自博客园,作者:广林,转载请注明原文链接:https://www.cnblogs.com/guanglin/p/5200110.html
浙公网安备 33010602011771号