함수가 호출되기 전에 다른 사람이 함수를 호출 할 수있게 도와 줄 수 있습니까? 호출 된 첫 번째 함수는 ajax 호출을 포함합니다.위의 함수가 완료된 후에 함수 호출이 완료되었습니다.
function requestPost(postID, clientId) {
first("path", { postID: postID, clientId: clientId});
second(); // this is where I want to call the second() but only the first() has completed.
}
감사
콜백 함수로 두 번째 함수를 ajax 호출에 전달하십시오. – Oded