本节要解决的问题
currency、date、orderBy 等。
核心要点
- 管道符 | 应用过滤器
- 可串联多个过滤器
- 可自定义过滤器
{{ price | currency }}\n<li ng-repeat="x in list | orderBy: "name"">过滤器在模板里频繁使用会影响性能,大数据先在处理好再绑定。
currency、date、orderBy 等。
currency、date、orderBy 等。
{{ price | currency }}\n<li ng-repeat="x in list | orderBy: "name"">过滤器在模板里频繁使用会影响性能,大数据先在处理好再绑定。