29

带你彻底搞懂Vue3的Proxy响应式原理!基于函数劫持实现Map和Set的响应式

 4 years ago
source link: https://juejin.im/post/5e23b20f51882510073eb571
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
前言 在本系列的上一篇文章 带你彻底搞懂Vue3的响应式原理!TypeScript从零实现基于Proxy的响应式库。中 我们详细的讲解了普通对象和数组实现响应式的原理,但是Proxy可以做的远不止于此,对于es6中新增的Map、Set、WeakMap、Weak

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK