复制1const promise = new Promise((resolve, reject) => { 2 console.log(1); 3 resolve('success') 4 console.log(2); 5}); 6promise.then(() => { 7 console.log(3); 8}); 9console.log(4);
1const promise = new Promise((resolve, reject) => { 2 console.log(1); 3 resolve('success') 4 console.log(2); 5}); 6promise.then(() => { 7 console.log(3); 8}); 9console.log(4);
题库维护不易,您的支持就是我们最大的动力!