numberFormatJS(str) {
str = str + "";
if (str < 0) {
return;
}
let reg = /(?!^)(?=(\d{3})+$)/g;
return str.replace(reg, ",");
},
},
数字千分位逗号处理,
最新推荐文章于 2024-09-04 20:18:34 发布
numberFormatJS(str) {
str = str + "";
if (str < 0) {
return;
}
let reg = /(?!^)(?=(\d{3})+$)/g;
return str.replace(reg, ",");
},
},