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

4번째 줄: 4번째 줄:
*비동기 HTTP 요청 수행
*비동기 HTTP 요청 수행


<source lang='jquery'>
==예시==
*예제: http://zetawiki.com/ex/jquery/jquery_ajax.html
*예제에서 불러오는 웹페이지: http://zetawiki.com/utf8test.txt
<source lang='html5'>
<script src="//code.jquery.com/jquery.min.js"></script>
<script>
$.ajax({
$.ajax({
  url: "test.html",
url: "http://zetawiki.com/utf8test.txt",
  context: document.body
}).done(function(data) {
}).done(function() {
document.write(data);
  $( this ).addClass( "done" );
});
});
</script>
</source>
</source>



2015년 7월 29일 (수) 11:28 판

1 개요

jQuery.ajax()
$.ajax()
  • 비동기 HTTP 요청 수행

2 예시

<script src="//code.jquery.com/jquery.min.js"></script>
<script>
$.ajax({
	url: "http://zetawiki.com/utf8test.txt",
}).done(function(data) {
	document.write(data);
});
</script>

3 같이 보기

4 참고 자료

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