javascript 숫자 세자리 콤마 제거하기 comma
const numberStr = "123,456,789";
// 전체 콤마 제거
const number = numberStr.replace(/,/g, "");
document.write(number);
ASP 숫자형 리턴 - 숫자인지 문자인지 알수 없어서 formatnumber를 적용 못할때 해당 function으로 적용해본다.

 
 Function My_IsNumeric(value)
    My_IsNumeric = False
    If IsNull(value) Then Exit Function
    My_IsNumeric = IsNumeric(CStr(value))
End Function
        if( len(view_val_acc) > 0 and My_IsNumeric(view_val_acc) = True )then 
            view_val_acc = formatNumber(view_val_acc,0)
        end if 
        'response.write "*"& view_val_acc
'프로그래밍 > Script' 카테고리의 다른 글
| [javascript] 전체 화면 Full screen (0) | 2022.03.15 | 
|---|---|
| [javascript] How copy and paste excel columns to HTML table with inputs? (0) | 2022.02.21 | 
| [javascript] ES6 for beginners, ES6 문법 + 활용 패턴 살펴보기 (0) | 2022.01.24 | 
| [script] 생활코딩 마인드맵 라이브러리 cytoscape 사용법 (0) | 2022.01.19 | 
| [javascript] Object.assign() (0) | 2022.01.18 | 


