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

使用 Optional Chaining #32

Open
aototo opened this issue Oct 30, 2019 · 0 comments
Open

使用 Optional Chaining #32

aototo opened this issue Oct 30, 2019 · 0 comments

Comments

@aototo
Copy link
Owner

aototo commented Oct 30, 2019

它现在处于 stage-1 阶段。你可以在.babelrc文件中引入 @babel/plugin-proposal-optional-chaining插件来使用它。

可以 这样获取数据

const data = myObj?.value?.xxxxx
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