分割数字,千分位加逗号,货币 var rexNumThree = 123456; rexNumThree.toString().replace(/B(?=(d{3})+$)/g,','); 输出:123,456