#在一个.vue文件中
import Vue from 'vue';
//生命周期
created() {
console.log(Vue === this.__proto__.constructor);
//为什么是false, 难道this不是new Vue()得到的吗
//毫无疑问, Vue是一个构造函数, 难道this不是Vue的实例 ?
}
#在一个.vue文件中
import Vue from 'vue';
//生命周期
created() {
console.log(Vue === this.__proto__.constructor);
//为什么是false, 难道this不是new Vue()得到的吗
//毫无疑问, Vue是一个构造函数, 难道this不是Vue的实例 ?
}
实例是 new Vue 得到的?