functionpro(){returnnewPromise(resolve=>{resolve()})}functiona(){returnpro().then(res=>{setTimeout(()=>{console.log(1)},2000)})}functionb(){returnpro().then(res=>{console.log(2)})}functionc(){returnpro().then(res=>{console.log(3)})}a().then(b).then(c);//231最后的结果为什么不是123?这样返回Promise是正确的吗?
梦里花落0921
不负相思意
相关分类