"JQuery $.post()"의 두 판 사이의 차이

(새 문서: ==개요== ; * ==같이 보기== * [[]] ==참고 자료== * {{위키백과}} * {{다음사전}} * {{다음백과}} * {{네이버사전}} * {{네이버백과}} 분류: 명사 [...)
 
잔글 (봇: 자동으로 텍스트 교체 (-</source> +</syntaxhighlight>, -<source +<syntaxhighlight ))
 
(사용자 3명의 중간 판 8개는 보이지 않습니다)
1번째 줄: 1번째 줄:
==개요==
==개요==
;
{{소문자}}
*  
;jQuery $.post()
* HTTP POST 방식으로 데이터를 받는 jQuery 메소드
* [[jQuery $.ajax()]]과 유사하나 [[POST 방식]] 전용으로 만든 메소드
 
<syntaxhighlight lang='jquery'>
$.ajax({
  type: "POST",
  url: url,
  data: data,
  success: success,
  dataType: dataType
});
</syntaxhighlight>
<syntaxhighlight lang='jquery'>
$.post( "example.php", function() {
  alert( "success" );
})
.done(function() {
  alert( "second success" );
})
.fail(function() {
  alert( "error" );
})
.always(function() {
  alert( "finished" );
});
</syntaxhighlight>


==같이 보기==
==같이 보기==
* [[]]
* [[jQuery $.get()]]
* [[jQuery $.ajax()]]


==참고 자료==
==참고==
* {{위키백과}}
* https://api.jquery.com/jquery.post/
* {{다음사전}}
* https://www.w3schools.com/jquery/ajax_post.asp
* {{다음백과}}
* {{네이버사전}}
* {{네이버백과}}


[[분류: 명사]]
[[분류: jQuery]]
[[분류: 새문서]]
[[분류: jQuery Ajax]]
[[분류: jQuery Ajax Shorthand Methods]]

2020년 11월 2일 (월) 02:52 기준 최신판

1 개요[ | ]

jQuery $.post()
  • HTTP POST 방식으로 데이터를 받는 jQuery 메소드
  • jQuery $.ajax()과 유사하나 POST 방식 전용으로 만든 메소드
$.ajax({
  type: "POST",
  url: url,
  data: data,
  success: success,
  dataType: dataType
});
$.post( "example.php", function() {
  alert( "success" );
})
.done(function() {
  alert( "second success" );
 })
.fail(function() {
  alert( "error" );
})
.always(function() {
  alert( "finished" );
});

2 같이 보기[ | ]

3 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}