摘要:promise和setTimeout都是处理异步回调的,那么到底谁先谁后呢? 我们来看一个例子: (function test() { setTimeout(function() {console.log(1)}, 0); new Promise(function executor(resolve)
阅读全文
posted @ 2020-12-13 22:56
既然选择了远方,便只顾风雨兼程
posted @ 2020-12-13 22:56
posted @ 2020-12-08 11:40
posted @ 2020-12-05 10:58