搜索文档
formatMoney(val, symbol?): string
val
symbol?
string
用符号(默认为逗号)格式化金钱
undefined
symbol
','
格式化后的金额字符串
Example
formatMoney('1234567890'); // => '1,234,567,890' formatMoney('1234567890', ' '); // => '1 234 567 890'