js将数字转为带逗号的格式
https://www.npmjs.com/package/bignumber.js
import BigNumber from "bignumber.js"
console.log( new BigNumber('123456789.7654321').toFormat(2) )
输出:123,456,789.77
https://www.npmjs.com/package/bignumber.js
import BigNumber from "bignumber.js"
console.log( new BigNumber('123456789.7654321').toFormat(2) )
输出:123,456,789.77