var a = {name:"1"}function fn(obj){ obj.name = "2"; obj = {name:"3"}; } fn(a); a.name // "2"
为什么输出是2
Cats萌萌