function addComma(x) {
var idx = 0;
while(true){
idx = x.indexOf(",");
x = x.replace(",","");
if(idx<0){break;}
}
//console.log(x);
return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
}'웹 개발 이야기 > js, jquery' 카테고리의 다른 글
| [JQUERY] 라디오버튼_선택된것과 안된것들 css 지정 (0) | 2023.03.08 |
|---|---|
| [JQUERY] 무한스크롤 (ajax 이용) (0) | 2023.03.08 |
| [node.js] nodemon 사용법 (0) | 2023.03.08 |
| [JQUERY] ajax source (0) | 2023.03.08 |
| [node.js] FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - process out of memory (0) | 2023.03.08 |
댓글