你是res1,res2 undefined,还是什么
去掉括号 只打印res看看
then(res => {console.log(res);})
返回的是个数组
Promise.all([promise1, promise2]).then(([res1, res2]) => {})
返回的应该是数组形式吧 .then(res)=>{ consoe.log(res)}看看
promise.all()成功时,在then(result)中result是个数组