Promise

Promise执行顺序

<script> const promise=new Promise((resolve, reject) =>{ console.log(1) resolve(); console.log(2) } ) promise.then(()=>{ console.log(3) }) console.log(4) console.log(5) </script>

Copyright © 2020-2023 春藤技术,春藤建站 All Rights Reserved
备案号:豫ICP备20020705号 公网安备 51LA统计