SOURCE

new Promise((resolve, reject) => {
    console.log(1)
    resolve(4)
    console.log(2)
})
.then((res) => {
    console.log('true',res)
    return new Promise((resolve, reject) => {
        resolve(2222)
    })
})
.then(data => {
    console.log('then2', data)
})
.catch(res => {
    console.log('false', res)
})
console 命令行工具 X clear

                    
>
console