随笔分类 -  源码study

摘要:##set this.$set方法 == vue.set vue.set是定义在构造函数上,前者定义在原型对象上 /** * Set a property on an object. Adds the new property and * triggers change notification i 阅读全文
posted @ 2022-08-10 15:28 阿兰儿 阅读(319) 评论(0) 推荐(0)
摘要:new 构造函数也是函数,唯一区别就是调用方式不同,任何函数只要使用new操作符调用就是构造函数,不适用new操作符调用的就是普通函数。 对象实例的创建过程: 在内存中创建一个新对象。 这个新对象内部的[[Prototype]]特性被赋值为构造函数的 prototype 属性。 构造函数内部的 th 阅读全文
posted @ 2022-02-24 14:59 阿兰儿 阅读(246) 评论(0) 推荐(0)