Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

由ES规范学JavaScript(二):深入理解“连等赋值”问题 #9

Closed
Wscats opened this issue Apr 7, 2017 · 0 comments
Closed

Comments

@Wscats
Copy link
Owner

Wscats commented Apr 7, 2017

有这样一个热门问题:

var a = {n: 1};
var b = a;
a.x = a = {n: 2};
alert(a.x); // --> undefined
alert(b.x); // --> {n: 2}

由ES规范学JavaScript(二):深入理解“连等赋值”问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant