ajax call

이석준·2022년 5월 2일
0

jquery ajax를 이용하여 비동기/ 동기 api처리를 할 수 있다..

    $.ajax(
        {
            type : "post",
            url : AppPublic.URL_CONTEXT +"/common/ajaxHandler.ex",
            data : {param :json},  // json Type으로 param 값
            async: false,		   // true : 비동기 처리 / false : 동기처리
                                   // false인 경우 해당 호출이 끝날때까지 기다림
            success : function(result)
            {

               console.log(result)
                
            }
            
        });

0개의 댓글