聊聊promise你不会注意的点

想必大家在项目中会见过这样的写法。 const p1 = new promise((resolve, reject) => { resolve(true); }) p1.then((res) => { if(res) { const p2 = new promise((resolve, reject) => { resolve(true); }) p2.then((res) => { const p3 = new p...