执行的先后顺序:
const p = new Promise(resolve => { console.log('a') resolve() console.log('b') }) p.then(() => { console.log('c') }) console.log('d')
.then是异步,最后一个执行
标签:面试题,resolve,console,log,前端,Promise,执行 From: https://www.cnblogs.com/huguo/p/17034833.html