vue 两个方法 按顺序执行
2021-08-30 本文已影响0人
码农界四爷__King
new Promise(res=>{
setTimeout(()=>{
console.log(1)
res()
},1)
}).then(res=>{
console.log(2)
})
new Promise(res=>{
setTimeout(()=>{
console.log(1)
res()
},1)
}).then(res=>{
console.log(2)
})