格式化金额(元),保留 2 位小数
单位是分的金额
格式化后的字符串
formatAmount(1000) // 10.00元formatAmount(1000, '') // 10.00 Copy
formatAmount(1000) // 10.00元formatAmount(1000, '') // 10.00
格式化金额(元),保留 2 位小数