-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
能否加入对数组观察的支持 #4
Comments
他明确说明只是简版的实现,想改良,可以去参考下vue,人家只是讲了下原理 |
我自己翻版了一个,支持观察数组,希望能帮到你 |
Vue 2.x 通过 Object.defineProperty 来劫持是不支持数组的,你可以用 es6 proxy 来实现对数组的观察,实际上,Vue 3.0 也是通过 proxy 来实现。具体你可以查 proxy 双向绑定。 |
No description provided. |
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No description provided.
The text was updated successfully, but these errors were encountered: