Wscats opened this issue 8 years ago · 0 comments
有这样一个热门问题:
var a = {n: 1}; var b = a; a.x = a = {n: 2}; alert(a.x); // --> undefined alert(b.x); // --> {n: 2}
由ES规范学JavaScript(二):深入理解“连等赋值”问题