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

(문서를 비움)
1번째 줄: 1번째 줄:
==개요==
;jQuery $.post()


<source lang='jquery'>
$.ajax({
  type: "POST",
  url: url,
  data: data,
  success: success,
  dataType: dataType
});
</source>
<source lang='jquery'>
$.post( "example.php", function() {
  alert( "success" );
  })
  .done(function() {
    alert( "second success" );
  })
  .fail(function() {
    alert( "error" );
  })
  .always(function() {
    alert( "finished" );
  });
</source>
==같이 보기==
* [[jQuery $.get()]]
==참고 자료==
* https://api.jquery.com/jquery.post/
* https://www.w3schools.com/jquery/ajax_post.asp
[[분류: jQuery]]

2017년 6월 26일 (월) 20:39 판

1 개요

jQuery $.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 }}