数值转换成千分位
Optional
// 示例 1: 不指定小数位数formatNumberThousands(12345678.9); // 输出: 12,345,678.9 Copy
// 示例 1: 不指定小数位数formatNumberThousands(12345678.9); // 输出: 12,345,678.9
// 示例 2: 指定小数位数formatNumberThousands(12345678.35, 0); // 输出: 12,345,678 Copy
// 示例 2: 指定小数位数formatNumberThousands(12345678.35, 0); // 输出: 12,345,678
数值转换成千分位