前端题目if()内部的变量提升
var y = 1
if(function f(){}){
console.log(typeof f) // undefined
y = y + typeof f
}
console.log(y) // 1undefined
真的不咋明白为什么会输出这个结果,有佬知道嘛~
if(function f(){}){
console.log(typeof f) // undefined
y = y + typeof f
}
console.log(y) // 1undefined
真的不咋明白为什么会输出这个结果,有佬知道嘛~
全部评论
插眼
相关推荐
点赞 评论 收藏
分享
迷茫的大四🐶:base不满足是为什么
,实习薪资开高一点也行吧
点赞 评论 收藏
分享
2025-12-04 15:36
门头沟学院 Java 点赞 评论 收藏
分享
查看1道真题和解析