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

这种方式解决getter没法实现延迟取值 #3

Open
luanwulin opened this issue Feb 12, 2019 · 0 comments
Open

这种方式解决getter没法实现延迟取值 #3

luanwulin opened this issue Feb 12, 2019 · 0 comments

Comments

@luanwulin
Copy link

语法可以编译到es5,但是当前写法只能在define的时候执行get()拿到当前值。
如果getter函数当中存在延迟计算的值,比如某个export的对象,可以被外面修改,就无法准确的在get的时候获取到对应的值。

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