(options)
| 7019 | } |
| 7020 | //实例化 组件 对象 |
| 7021 | var Sub = function VueComponent(options) { |
| 7022 | console.log('==this._init') |
| 7023 | console.log(this._init) |
| 7024 | |
| 7025 | // vue中的_init 函数 Vue.prototype._init |
| 7026 | this._init(options); |
| 7027 | }; |
| 7028 | //创建一个对象 继承 超类的原型 |
| 7029 | Sub.prototype = Object.create(Super.prototype); |
| 7030 | //让他的构造函数指向回来,防止继承扰乱。 |
nothing calls this directly
no outgoing calls
no test coverage detected