如何改变angularjs货币格式?我需要这样改变
2.543.128,76.默认的angularjs格式$254,312,876.00.
你只需要添加正确的本地像<script src="i18n/angular-locale_tr-tr.js"></script>
支持的语言环境在这里:https ://github.com/angular/angular.js/tree/master/src/ngLocale
\n\n您也可以使用数字过滤器来做到这一点:
\n\n{{(produce.price | number:2) + "\xe2\x82\xba"}}\nRun Code Online (Sandbox Code Playgroud)\n
| 归档时间: |
|
| 查看次数: |
1351 次 |
| 最近记录: |