$(document).ready(function(){ fnAjax(); fnConsole(); } function fnAjax(){ $.ajax({ type : 'POST', url : getContextPath() + '/url.com', data : $('#frmAjax').serialize(), async : false, dataType : 'json', success : function(data) { console.log('ajax hi!'); }, error : function(x, error) { showMessageBox('서버통신 중 오류가 발생하였습니다.'); console.log(x); }, }); } function fnConsole(){ console.log('console hi!'..