js金额增加千分号
//千分号分隔符 micrometerHandle(num){ //保留两位小数(不用可以删除) num = num.toFixed(2); return num && (num.toString().indexOf('.') != -1 ? num.toString().replace(/(\d)(?=(\d{3})+\.)/g, function($0, $1) { return $1 + ","; }) : num.toString().replace(/(\d)(?=(\d{3}))/g, function($0, $1) { return $1 + ","; })); }