https://blog.csdn.net/weixin_44758548/article/details/108679316
2.Vue 实例还暴露了一些有用的实例 property 与方法。它们都有前缀 $,以便与用户定义的 property 区分开来
var data = { a: 1 }
var vm = new Vue({
el: '#example',
data: data
})
vm.$el === document.getElementById('example') // => true
// $watch 是一个实例方法
vm.$watch('a', function (newValue, oldValue) {
// 这个回调将在 `vm.a` 改变后调用
})