Vue初始化(被创建)后会判断有无el
el
vm.$mount('#root')
data: {}
data() {return {}}
由Vue管理的函数,不要写成箭头函数,否则this就不再是Vue实例了
this