本文共 403 字,大约阅读时间需要 1 分钟。
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);
转载地址:http://ohro.baihongyu.com/