
Vue基础知识-李立超-响应式基础知识
1.响应式基础知识代理对象:用作网页渲染和模块对象的过度(代理)代理对象的定义:const obj = { name: 'aaa', age: 485, gender: 'man', }// obj是代理对象,handler是代理的行为const proxy = new Proxy(obj, handler)const handler = { // 取值函数 get(target, prop, receiver){ return target[prop] }, // 修改参




