2020年12月13日

摘要: promise和setTimeout都是处理异步回调的,那么到底谁先谁后呢? 我们来看一个例子: (function test() { setTimeout(function() {console.log(1)}, 0); new Promise(function executor(resolve) 阅读全文
posted @ 2020-12-13 22:56 zhangzongshan 阅读(165) 评论(0) 推荐(0)

导航