给数字添加千分位
// const science = (num) => {
// var str = '';
// if(typeof num == 'number') {
// str = num.toString();
// } else if(typeof num == 'string'){
// str = num;
// } else {
// return num;
// }
// var re = /(?=(?!\b)(\d{3})+$)/g;
// return str.replace(re, ',');
// }

浙公网安备 33010602011771号