Promise.html | ●●●●● patch | view | raw | blame | history |
Promise.html
@@ -81,13 +81,12 @@ console.log("promise5 执行的异步操作"); resolve(); },10); }); }).then(()=>{console.log("promise5 默认回调")}); setTimeout(()=>{ promise5.then(() => { console.log("promise5 即使异步操作已经完成(成功或失败),在这之后通过 then() 添加的回调函数也会被调用"); }); },1000); //3. </script> </head> <body>