javascript - All promises return to resolved status. Why is promise.all still not executed?
習慣沉默2017-07-05 10:41:33
0
1
1247
I think it may be because I defined getData globally, so the promise cannot get the status. Otherwise, why are the functions in the failure state of promise.all not executed? I hope Daniel can help me answer this question.
Because every time the Jsonp function is executed, your window.getData will be redefined and assigned a value