Ajax와 같은 비동기 호출을 호출하는 동안 코드를 대기시키는 방법 이 질문에 이미 답변이 있습니다. 비동기 호출에서 응답을 어떻게 반환합니까? 36 답변 이런 걸 찾고 있어요 function someFunc() { callAjaxfunc(); //may have multiple ajax calls in this function someWait(); // some code which waits until async calls complete console.log('Pass2'); } function callAjaxfunc() { //All ajax calls called here console.log('Pass1'); } 내가 무엇을 시도 했습니까? 1 Jquery.when () 그것을 사용해 보았습니다..