标签: javascript oop
我有一个对象a:
a
var a = {//some properties....};
然后b参考a:
b
var b = a; function modifyB() { //do something with b to change a } //after finish I want from b to refer an other object c b = c;
引用问题c,如何更改b而不更改后modifyB()。
modifyB()