//数字添加千分符function format(num) { var reg = /(\d{1,3})(?=(\d{3})+(?:$|\.))/g; return (num + '').replace(reg, '$1,'); }
//去掉数字字符串中千分符:numStr.replace(/,/gi, '');