상세 컨텐츠

본문 제목

[ JavaScript ] Ajax 기본 틀

FrontEnd/JavaScript

by SangHoonE 2021. 10. 20. 11:06

본문

반응형

안녕하세요 상훈입니다.

$.ajax({
   url: ' ' ,
   method: ' ' ,
   data: {   },
   erorr: (  ) => {  },
   success: (  ) => {  }
})

이랬던 ajax가 변경되었습니다.

 

$.ajax({
   url: ' ' ,
   method: ' ' ,
   data: {  } ,
})
.done (  )
.fail (  )

 

참고 바랍니다.

 

 

jQuery.ajax() | jQuery API Documentation

Description: Perform an asynchronous HTTP (Ajax) request. The $.ajax() function underlies all Ajax requests sent by jQuery. It is often unnecessary to directly call this function, as several higher-level alternatives like $.get() and .load() are available

api.jquery.com

 

관련글 더보기

댓글 영역