题目描述let _resolve;
let promise2 = new Promise((resolve, reject) => _resolve = resolve);
promise2.then((data)=>{ console.log(data);
})
setTimeout(()=>{
_resolve(2000000000);
},7000)代码的执行结果?这是为什么呢?
- 1 回答
- 0 关注
- 511 浏览
添加回答
举报
0/150
提交
取消