- 博客(1)
- 收藏
- 关注
原创 Vue源码:new Vue发生了什么
new Vue来源_init方法initState()方法initData()方法:初始化data来源new关键字在js中代码实例化一个对象,而Vue实际上就是一个类,类在js中用Function来定义,源码在src/core/instance/index.js中。function Vue (options) { if (process.env.NODE_ENV !== 'product...
2019-01-16 16:02:35
270
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人