2018-08-15--Vue技术内幕摘记2

2018-09-10  本文已影响0人  安乐_f487

学习Vue的思路

1. 以一个例子为线索

new Vue()  --->  this._init(options)  --->

简单的options例子

this._init()方法中,

1)uid--实例的唯一标识

2)startTag,endTag--config.performance性能追踪

3)options._isComponent

Vue创建组件时才会有

4)$options--用于Vue实例的初始化

上一篇 下一篇

猜你喜欢

热点阅读