-
학원 day70. 회원가입기록 2022. 12. 13. 10:12
화면에서 유효성 체크하기
var와 마찬가지로 let도 변수 정의하는 것
제이쿼리 이벤트 함수에서 false를 작성하면 이벤트와 관련된 기본 동작이 일어나지 않는다.
이벤트가 상위 이벤트로 전파되지 않는다.
form의 기본동작인 서버로 제출되는 걸 막는다.
마지막에는 return true를 반환해서 submit 이벤트 발생시 <form/>태그의 기본동작(폼입력값을 서버로 제출하는 동작)이 진행되도록 한다.
동일한 아이디, 이메일을 사용하는 사용자가 있는지 체크하기
content Type = "text/plain"으로 변경한다.
'기록' 카테고리의 다른 글
학원. 세미프로젝트 (0) 2022.12.21 학원 day71. (0) 2022.12.14 학원 day69. (0) 2022.12.12 학원 day68. Map 정복 (0) 2022.12.09 학원 day67. 싱글턴 정복중.... (0) 2022.12.08