我见过一些解决方案,人们用formatCurrency(1234.56, this.locale, '')写出金额,然后从产生的字符串中提取字符。
formatCurrency(1234.56, this.locale, '')
请Google ...告诉我,这不是唯一的方法。
千位分隔符:
getLocaleNumberSymbol(this.locale, NumberSymbol.CurrencyGroup)
小数标记:
getLocaleNumberSymbol(this.locale, NumberSymbol.CurrencyDecimal)