2018-08-15--Vue技术内幕摘记2
2018-09-10 本文已影响0人
安乐_f487
学习Vue的思路
1. 以一个例子为线索
new Vue() ---> this._init(options) --->
![](https://img.haomeiwen.com/i5903053/8c8d246b30a5b562.png)
this._init()方法中,
1)uid--实例的唯一标识
2)startTag,endTag--config.performance性能追踪
![](https://img.haomeiwen.com/i5903053/8236d6bb038eae73.png)
3)options._isComponent
![](https://img.haomeiwen.com/i5903053/c54402486a56f9ff.png)
4)$options--用于Vue实例的初始化
![](https://img.haomeiwen.com/i5903053/4e75ae861d43fcc6.png)
学习Vue的思路
1. 以一个例子为线索
new Vue() ---> this._init(options) --->
this._init()方法中,
1)uid--实例的唯一标识
2)startTag,endTag--config.performance性能追踪
3)options._isComponent
4)$options--用于Vue实例的初始化