普通会员
登录
题库
实习信息
校招公告
参访活动
题库
软件开发
题目列表
下面代码大输出顺序是 setTimeout(() => { console...
单选题
下面代码大输出顺序是
setTimeout(() => {
console.log(1)
}, 0)
const P = new Promise((resolve, reject) => {
console.log(2)
setTimeout(() => {
resolve()
console.log(3)
}, 0)
})
P.then(() => {
console.log(4)
})
console.log(5)
A.
2 1 3 4 5
B.
5 2 1 3 4
C.
5 1 2 3 4
D.
2 5 1 3 4
上一题
[单选题] 有a.js和b.js两个文件,请选择b文件中代码的输出 // a.js let a = 1 let b = {} setTimeout(() => { ...
下一题
[单选题] 下列代码的执行结果 function Fn1(name) { if(name){ this.name = name; } } Fn1.prototype.name="...
纠错
题目信息
校招真题
-
正确率
0
评论
13
点击
收藏
已收藏
错题本
已加入错题本
我的笔记
登录添加笔记