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

描述有误,数组也可以通过defineProperty实现响应式,之所以不这样处理, 是因为性能问题。 #9

Open
linxuekai opened this issue Nov 9, 2022 · 0 comments

Comments

@linxuekai
Copy link

这是因为对于`Object`数据我们使用的是`JS`提供的对象原型上的方法`Object.defineProperty`,而这个方法是对象原型上的,所以`Array`无法使用这个方法,所以我们需要对`Array`型数据设计一套另外的变化侦测机制。

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