예시:
'2021-01-01'.replace(/-/g, '/')
2021-01-01 에서 -로 되어있는걸 /로 바꿔라
'배운 내용 정리 > JAVASCRIPT' 카테고리의 다른 글
preventDefault, lowercase만 입력 받는 예제 (0) | 2021.03.16 |
---|---|
서버에서 파라미터 넘길 때 에러 (0) | 2020.12.30 |
escape(), encodeURI(), encodeURIComponent() (0) | 2020.12.08 |
KeyBoardEvent (getModifierState) - 키보드 이벤트(예: Caps Lock 여부) (0) | 2020.12.07 |
toLocaleDateString - 요일 구하기 (0) | 2020.11.30 |