728x90 반응형 비동기처리1 #Promise #비동기처리 #문법 #ajax #AJAX통신시 실행순서에 따른 제어 🍭Ajax 기본 통신 구조 🎈type, url, data, dataType을 지정하여 호출을 하며 success타입에 따라 데이터를 리턴 받을 수 있다. $.ajax({ type: "POST", url: url, data: data, success: success, dataType: dataType }); 🎈type : http 타입 ( get, post) 🎈url : 호출하는 URL 정보 🎈async : true(기본), 비동기 처리, false(동기처리) 🎈data : URL호출시 보내는 파라미터 (key,value / json) 🎈dataType : http통신 이후 응답되는 데이터 타입 🎈success : function(res) : ajax통신 이후 실행 함수 $.post( "ajax/test... 💚04_HTML5 & Javascript & CSS/02_Jquery 2022. 12. 13. 이전 1 다음 728x90 반응형