数值货币型转换 formatCurrency
- Source:
Example
formatCurrency(12333.514, '$', 2) => $12,333.51
Parameters:
Name | Type | Description |
---|---|---|
value |
String | Number | 金额 |
currency |
String | 货币符号 默认空 |
decimals |
String | 保留位数 默认2位 |
Returns:
货币型的字符
- Type
- String