Difference between `xhr.onload = ()=>{resolve();}` and `xhr.onload = resolve();`

前端 未结 0 651
别那么骄傲
别那么骄傲 2021-01-31 12:27
function foo(){
   return new Promise((resolve,reject)=>{
      const xhr = new XMLHttpRequest();
      xhr.open(method,url);
          


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