🌈 搜索
📅  最后修改于: 2022-03-11 15:02:09.060000             🧑  作者: Mango
function formatNumber(num) { return num.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g, '$1.') }