How to activate two JavaScript functions in parallel?

前端 未结 7 868
失恋的感觉
失恋的感觉 2020-12-16 02:23

Anyone can tell me how to activate two (or more) JavaScript AJAX functions in parallel?

7条回答
  •  北荒
    北荒 (楼主)
    2020-12-16 02:49

    Use window.open() to call a new page. That page will call the first js function. After window.open() calls the second function, you are not technically waiting for the first function to complete. You just wait for the window.open() to execute and then the second will get execute.

提交回复
热议问题