Javascript
[JS] 숫자 콤마(,)
StalkerF
2019. 2. 7. 08:21
return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, "," ); } |
ajax 로 숫자 데이터 가져왔을 때, 콤마 찍어주는 방법