Wait for several promise to finish

linkaiyi
Follow

wait for several promise to finish

jquery $.get() or $.getJSON() return a promise object. All these objects and be queued by Promise.all([]).then().catch() function

```Javascript

var pr1 = $.get()
var pr2=$.get()

Promise.all([]).then()

Object has 0 attachments

Was this article helpful?

This article is viewed 18 times!

0 Comments

Leave a Comment

Support