编辑代码

Promise.resolve()
    .then( e=>console.log(2) )
    .then( e=>console.log(3) )

Promise.resolve()
    .then( console.log(1) )
    .then( e=>console.log(4) )