填写这份《一分钟调查》,帮我们(开发组)做得更好!去填写Home

getCurrencySymbol

Retrieves the currency symbol for a given currency code.

查看"说明"...

getCurrencySymbol(code: string, format: "wide" | "narrow", locale: string = 'en'): string
      
      getCurrencySymbol(code: string, format: "wide" | "narrow", locale: string = 'en'): string
    
参数
code string

The currency code.

format "wide" | "narrow"

The format, wide or narrow.

locale string

可选. 默认值是 'en'.

A locale code for the locale format rules to use.

返回值

string: The symbol, or the currency code if no symbol is available.

参见

说明

For example, for the default en-US locale, the code USD can be represented by the narrow symbol $ or the wide symbol US$.