function foo(a,b){
return a + b;
}
foo(1,2);
是否悬挂了功能参数?
在函数执行上下文的创建阶段,variableEnvirnoment是否看起来像这样:
VE = {
{ 0 : undefined , 1: undefined, length: 2 },
{a : undefined, b: undefined},
outer: refToGlobalLE
}
function foo(a,b){
return a + b;
}
foo(1,2);
是否悬挂了功能参数?
在函数执行上下文的创建阶段,variableEnvirnoment是否看起来像这样:
VE = {
{ 0 : undefined , 1: undefined, length: 2 },
{a : undefined, b: undefined},
outer: refToGlobalLE
}