连续赋值的理解:原帖 http://www.iteye.com/topic/785445 底下某层楼理解的号
- var a = {n:1};
- var b = a; // 持有a,以回查
- a.x = a = {n:2};
- alert(a.x);// --> undefined
- alert(b.x);// --> [object Object]
连续赋值的理解:原帖 http://www.iteye.com/topic/785445 底下某层楼理解的号
转载于:https://www.cnblogs.com/venoral/p/5178706.html