如1200000.11转成12,000,000.11
var num = 1200000.11;result = num && num.toString().replace(/(\d)(?=(\d{3})+\.)/g,function($1,$2){ return $2 + ',';});