function addTenThousandSeparators(number) {
const parts = number.toString().split('.');
parts[0] = parts[0].replace(/\B(?=(\d{4})+(?!\d))/g, ' ');
return parts.join('.');
}
function addTenThousandSeparators(number) {
const parts = number.toString().split('.');
parts[0] = parts[0].replace(/\B(?=(\d{4})+(?!\d))/g, ' ');
return parts.join('.');
}
本文标题:万分符
本文链接:https://www.haomeiwen.com/subject/wgveidtx.html
网友评论