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是正确的吗?
慕田峪7331174
梦里花落0921
不负相思意
随时随地看视频慕课网APP
相关分类