1 创建AO对象
2 找形参和变量的声明,作为AO对象的属性名,值是undefined
3 实参和形参相统一
4 找函数声明,覆盖变量的声明
function fn(a,c){
console.log(a)//function a(){}
var a=123;// a=123
console.log(a);//123
console.log(c);//function c(){}
function a(){
}
console.log(d)//undefined
console.log(b)//undefined
var b=function(){
}
console.log(b)//function(){}
function c(){}
console.log(c)//function c(){}
}
fn(1,2);
AO:{
a:undefined 1 function a(){}
b:undefined function(){}
c:undefined 2 function c(){}
d:undefined
}