new vue({
el://用来获取要渲染的标签的ID
data:{//英语存储对象数据}
methods:{//用于创建对象的方法}
watch:{用于事件监听data中的属性值得变化格式data中的变量:function(){}}
computed:{计算属性必须有return值}
filters:{}
directives:{}
components:{}
router:定义的路由的对象
beforeCreate(){}//等一系列钩子函数
})
new vue({
el://用来获取要渲染的标签的ID
data:{//英语存储对象数据}
methods:{//用于创建对象的方法}
watch:{用于事件监听data中的属性值得变化格式data中的变量:function(){}}
computed:{计算属性必须有return值}
filters:{}
directives:{}
components:{}
router:定义的路由的对象
beforeCreate(){}//等一系列钩子函数
})