공지사항
공지사항 분류 |
일반공지
|
||||
---|---|---|---|---|---|
제목 |
1234
|
||||
작성일 |
2021-09-09
|
작성자 |
admin
|
조회수 |
137
|
내용 |
async function loadData() {
await callAPromise1()
await callAPromise2()
await callAPromise3()
await callAPromise4()
await callAPromise5()
throw new Error("boom");
}
loadData()
.catch(function(e) {
console.log(err);
// output
// Error: boom at loadData (index.js:7:9)
});
function loadData() {
return callAPromise()
.then(callback1)
.then(callback2)
.then(callback3)
.then(() => {
throw new Error("boom");
})
}
loadData()
.catch(function(e) {
console.log(err);
// Error: boom at callAPromise.then.then.then.then (index.js:8:13)
});
|
||||
첨부파일 |
첨부된 파일이 없습니다.
|
로그인
문의하기