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

给已经存在的变量解构赋值 #68

Open
zhangyanan0525 opened this issue Oct 31, 2019 · 0 comments
Open

给已经存在的变量解构赋值 #68

zhangyanan0525 opened this issue Oct 31, 2019 · 0 comments

Comments

@zhangyanan0525
Copy link
Owner

let object = {name : "John", age : 23};
let x, y;
({name: x, age: y} = object);

其实就是加括号

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

No branches or pull requests

1 participant