stackoverflow (1) 썸네일형 리스트형 [javascript] 숫자 3자리 마다 콤마찍기 function numberWithCommas(x) { return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ","); } 출처 : https://goo.gl/v5VnQ 이전 1 다음