87,993
社区成员
发帖
与我相关
我的任务
分享
var x = 1;
function f(){
console.log(x)
}
f()
//第一段代码,输出结果显然是1
var a = 5;
var b = 6;
function fcc(c = a+b){
console.log(c);
}
fcc() //输出结果为:11
var x = 1;
function f(x,y = x){
console.log(x) //输出结果undefined
console.log(y) //输出结果undefined
}
f()