let p = new Promise((resolve,reject) => {
resolve('ok')
})
console.log(p);
let p = new Promise((resolve,reject) => {
reject('error')
})
console.log(p);
let p = new Promise((resolve,reject) => {
throw '出错了'
})
console.log(p);