getCurrencySymbol
Returns the currency symbol for a given currency code, or the code if no symbol available (e.g.: format narrow = $, format wide = US$, code = USD) If no locale is provided, it uses the locale "en" by default
getCurrencySymbol(code: string, format: "wide" | "narrow", locale: string = 'en'): string
参数
code | string | |
format | "wide" | "narrow" | |
locale | string | 可选. 默认值是 |
返回值
string