var a = {name:"1"}function fn(obj){
obj.name = "2";
obj = {name:"3"};
}
fn(a);
a.name // "2"
特別簡單的 js 變量難點,誰能把我整明白了
青春有我
2018-07-03 11:33:11