vue基础知识
vue基础知识
1.声明式渲染
2条件一循环
循环
3.事件绑定
4双向绑定
5vue生命周期
一共八个阶段
1.beforeCreate(创建前)
2.created(创建后)
3.beforeMount(载入前)
4.mounted(载入后)
5.beforeUpdate(更新前)
6.updated(更新后)
7.beforeDestory(销毁前)
8.destoryed(销毁后)
vue第一次页面加载会触发.beforeCreate created. beforeMount
mounted 这四个钩子函数
DOM渲染在mounted周期完成