var str = "100000000000";
var reg = /(?=(\B)(\d{3})+$)/g;
console.log(str.replace(reg, "."))
var str = "100000000000";
var reg = /(?=(\B)(\d{3})+$)/g;
console.log(str.replace(reg, "."))
本文标题:一串数字,每隔三位加一个.
本文链接:https://www.haomeiwen.com/subject/gvocpqtx.html
网友评论