let _resolve; let promise2 = new Promise((resolve, reject) => _resolve = resolve); promise2.then((data)=>{ console.log(data); }) setTimeout(()=>{ _resolve(2000000000); },7000)
代码的执行结果?
这是为什么呢?
幕布斯7119047
相关分类