var objOld = {name:"hhh"};
var objNew = objOld;
console.log(objNew); //{name: "hhh"}
console.log(objOld);// {name: "hhh"}
objNew 和objOld指针是一个,改变其中一个,另一个也会改变;
objNew.age="24"
console.log(objNew); //{name: "hhh", age: "24"}
console.log(objOld);//{name: "hhh", age: "24"}