본문 바로가기

카테고리 없음

[jQuery] 에러 - $.ajax is not a function

ajax를 이용해 회원가입 유효성검사기능을 만드는중에 에러가 발생했다.

 

slim버전 jQuery를 사용하면 $.ajax()를 사용할 수 없다.

 

<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>

해결방법

slim을 뺀 버전으로 사용하면 해결된다.

 

<script src="https://code.jquery.com/jquery-3.5.1.js" ></script>