SOURCE

function getData () {
  return new Promise((resolve, reject) => {
    setTimeout(() => {
      resolve({
        data: '定时完成'
      })
		})
  })
}

getData().then(res => {
  console.log(JSON.stringify(res), 'res')
  return '传给下一级'
}).then(res2 => {
  console.log(res2, 'res2')
})
console 命令行工具 X clear

                    
>
console