OneDev
[Ajax] async : 비동기식/동기식 처리 본문
- async : 기본값 true
- async : true → 비동기식 처리
- async : false → 동기식 처리 : ajax 호출 후 서버에서 응답 기다리다 응답을 모두 완료하면 다음 로직 처리
(예)
function() {
url:url,
data:data,
...
...
async:false,
success:funtion(){
}, error:function(){
}
}
'WEB > jQuery' 카테고리의 다른 글
| [jQuery] jQuery 기본선택자 (0) | 2023.03.22 |
|---|---|
| [jQuery] $(document).ready() (0) | 2023.02.15 |
| jQuery 개요 (0) | 2023.02.15 |
Comments