一、千分位转换位整数
var sum = ‘2,034,300‘;
var x = sum.split(",");
var plan_sum = parseFloat(x.join(""));
输出的结果就是“2034300”;
二、整数转换成千分位
var TextBox8_all = "12340400";
var num = TextBox8_all.toFixed(2)+"";//保留两位小数
var text8_sum = num.replace(/(\d{1,3})(?=(\d{3})+(?:$|\.))/g,‘$1,‘);
输出的结果就是“12,340,400.00”;
---------------------