커뮤니티
포인트
쿠폰
내 강의실
국비 신청 내역
증명서
계정
로그아웃
학습 질문
개발 일지
나의 활동
답변 완료
jquery 연습하기 퀴즈
undefined주차
북마크
김*오
댓글
5
추천
0
조회수
9
조회수
9
답변 완료
function q2() {
    let txt = $('input-q2').val()
   console.log(txt.includes('@'))

}
jquery01.html?_ijt=6pbda9cr2a1jshtj1ti20at1l8&_ij_reload=RELOAD_ON_SAVE:29 Uncaught TypeError: Cannot read properties of undefined (reading 'includes')

  at q2 (jquery01.html?_ijt=6pbda9cr2a1jshtj1ti20at1l8&_ij_reload=RELOAD_ON_SAVE:29:28)

  at HTMLButtonElement.onclick (jquery01.html?_ijt=6pbda9cr2a1jshtj1ti20at1l8&_ij_reload=RELOAD_ON_SAVE:64:32)

q2 @ jquery01.html?_ijt=6pbda9cr2a1jshtj1ti20at1l8&_ij_reload=RELOAD_ON_SAVE:29

onclick @ jquery01.html?_ijt=6pbda9cr2a1jshtj1ti20at1l8&_ij_reload=RELOAD_ON_SAVE:64


이메일 박스에 abc@gmail.com을 적으면 컨솔창에서 true 메시지가 아니고 이런 에러메시지가 뜨네요~~~

취소
 공유
취소
댓글 0
댓글 알림
나의얼굴