Call same the function when promise is resolved or rejected in JS for loop

后端 未结 0 1302
轻奢々
轻奢々 2021-02-19 11:18

Here is my function which returns a promise:

function myFunction(i){
  return new Promise(function(resolve,reject){
    setTimeout(function(){
      console.log(i         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题